SA-MP Forums Archive
Minigun game. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Minigun game. (/showthread.php?tid=269932)



Minigun game. - Kingunit - 18.07.2011

<fixed>


Re: Minigun game. - Bob_Raw - 18.07.2011

Well Do this


Quote:

if(!strcmp(cmdtext,"/minigun",true))
{
GivePlayerWeapon(playerid, 38, 9999); //Give playerid minigun with 9999 ammo
SendClientMessageToAll(playerid, your Color, " % Has Joined The Minigame Lobby" pName);
SetPlayerInterior(playerid, 0); //Set playerid Interioir 0
SetPlayerPos(playerid, -2299.4580,1864.7584,15.5630); //Set playerid to spawn location
return 1;
}


But Don't Forget You need the Enum's.


Re: Minigun game. - Kingunit - 18.07.2011

<fixed>


Re: Minigun game. - Wesley221 - 18.07.2011

Quote:
Originally Posted by Bob_Raw
Посмотреть сообщение
Well Do this






But Don't Forget You need the Enum's.
That wont work.

pawn Код:
if(!strcmp(cmdtext,"/minigun",true))
{
    new string[128], name[24];
    GetPlayerName(playerid, name, sizeof name); // This will get the name of the player
    GivePlayerWeapon(playerid, 38, 9999); //Give playerid minigun with 9999 ammo
    SetPlayerInterior(playerid, 0); //Set playerid Interioir 0
    SetPlayerPos(playerid, -2299.4580,1864.7584,15.5630); //Set playerid to spawn location
    format(string, sizeof string, "%s joined the minigun lobby!", name); // %s holds the variable name, which is the playername
    SendClientMessageToAll(-1, string); // This will send the string which you formatted above
    return 1;
}



Re: Minigun game. - Kingunit - 18.07.2011

<fixed>


Re: Minigun game. - Wesley221 - 18.07.2011

Yes it is. Take a look at this
https://sampwiki.blast.hk/wiki/Random


Re: Minigun game. - Kingunit - 18.07.2011

<fixed>