SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 01/03/2010, 01:25 PM   #1
Igdirli 76
Big Clucker
 
Join Date: Dec 2008
Posts: 77
Reputation: 0
Default Minigun

Hallo People,
I have a problem.
I have scripted a map and when player teleport than i will give the player minigun.
Also i written :
Code:
if(!strcmp(cmdtext, "/minigun"))
  {
    SetPlayerPos(playerid, 3106.690, 468.840, 36.7495);
    SendClientMessage(playerid, 0xDF1818AA , "Minigun Match");
    GivePlayerWeapon(playerid, 358, 8000);
    return 1;
  }
But I have only Desert Eagle
Igdirli 76 is offline  
Old 01/03/2010, 01:26 PM   #2
Jefff
Banned
 
Join Date: Dec 2007
Posts: 2,593
Reputation: 326
Default Re: Minigun

358 to 38
Jefff is offline  
Old 01/03/2010, 01:30 PM   #3
Igdirli 76
Big Clucker
 
Join Date: Dec 2008
Posts: 77
Reputation: 0
Default Re: Minigun

What must i write for :
When player teleport to skroad then the weapons is not available
Igdirli 76 is offline  
Old 01/03/2010, 01:33 PM   #4
Jefff
Banned
 
Join Date: Dec 2007
Posts: 2,593
Reputation: 326
Default Re: Minigun

Code:
ResetPlayerWeapons(playerid);
Jefff is offline  
Old 01/03/2010, 01:41 PM   #5
Igdirli 76
Big Clucker
 
Join Date: Dec 2008
Posts: 77
Reputation: 0
Default Re: Minigun

Who i must write this ?
Unter the teleport code?
Igdirli 76 is offline  
Old 01/03/2010, 01:45 PM   #6
Jefff
Banned
 
Join Date: Dec 2007
Posts: 2,593
Reputation: 326
Default Re: Minigun

Yes
Code:
if(!strcmp(cmdtext, "/skroad",true))
  {
    SetPlayerPos(playerid, ...);
    ResetPlayerWeapons(playerid);
    return 1;
  }
Jefff is offline  
Old 01/03/2010, 01:48 PM   #7
Igdirli 76
Big Clucker
 
Join Date: Dec 2008
Posts: 77
Reputation: 0
Default Re: Minigun

Ehmm its worng :S
When i entered /minigun than i have no weapons
Igdirli 76 is offline  
Old 01/03/2010, 01:49 PM   #8
Jefff
Banned
 
Join Date: Dec 2007
Posts: 2,593
Reputation: 326
Default Re: Minigun

Must be if(!strcmp(cmdtext, "/minigun",true))
Jefff is offline  
Old 01/03/2010, 01:51 PM   #9
bajskorv123
Huge Clucker
 
Join Date: Sep 2009
Posts: 405
Reputation: 0
Default Re: Minigun

*sigh*
pawn Code:
if(!strcmp(cmdtext, "/minigun", true))
{
  SetPlayerPos(playerid, 3106.690, 468.840, 36.7495);
  SendClientMessage(playerid, 0xDF1818AA , "Minigun Match");
  ResetPlayerWeapons(playerid);
  GivePlayerWeapon(playerid, 38, 8000);
  return 1;
}
bajskorv123 is offline  
Old 01/03/2010, 01:53 PM   #10
BurningSWA
Big Clucker
 
Join Date: Jun 2009
Posts: 140
Reputation: 0
Default Re: Minigun

Code:
if(!strcmp(cmdtext, "/minigun"))
 {
   SetPlayerPos(playerid, 3106.690, 468.840, 36.7495);
   SendClientMessage(playerid, 0xDF1818AA , "Minigun Match");
    ResetPlayerWeapons(playerid);
   GivePlayerWeapon(playerid, 24, 8000);
   return 1;
 }
this will do it
BurningSWA is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
minigun Headshot1108 Help Archive 8 15/06/2010 11:30 AM
minigun gozo12 Help Archive 4 09/04/2010 08:14 PM
need help on minigun ban fs stuntage Help Archive 3 18/07/2009 09:54 AM
[GameMode] [GM]New Minigun rytis935 Gamemode Scripts 16 02/07/2009 12:02 PM


All times are GMT. The time now is 11:49 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.