SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Help Archive (https://forum.sa-mp.com/forumdisplay.php?f=89)
-   -   Minigun (https://forum.sa-mp.com/showthread.php?t=131022)

Igdirli 76 01/03/2010 01:25 PM

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

Jefff 01/03/2010 01:26 PM

Re: Minigun
 
358 to 38

Igdirli 76 01/03/2010 01:30 PM

Re: Minigun
 
What must i write for :
When player teleport to skroad then the weapons is not available

Jefff 01/03/2010 01:33 PM

Re: Minigun
 
Code:

ResetPlayerWeapons(playerid);

Igdirli 76 01/03/2010 01:41 PM

Re: Minigun
 
Who i must write this ?
Unter the teleport code?

Jefff 01/03/2010 01:45 PM

Re: Minigun
 
Yes
Code:

if(!strcmp(cmdtext, "/skroad",true))
  {
    SetPlayerPos(playerid, ...);
    ResetPlayerWeapons(playerid);
    return 1;
  }


Igdirli 76 01/03/2010 01:48 PM

Re: Minigun
 
Ehmm its worng :S
When i entered /minigun than i have no weapons

Jefff 01/03/2010 01:49 PM

Re: Minigun
 
Must be if(!strcmp(cmdtext, "/minigun",true))

bajskorv123 01/03/2010 01:51 PM

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;
}

BurningSWA 01/03/2010 01:53 PM

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 ;)


All times are GMT. The time now is 06:03 PM.

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