Minigun game.
#1

<fixed>
Reply
#2

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.
Reply
#3

<fixed>
Reply
#4

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;
}
Reply
#5

<fixed>
Reply
#6

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

<fixed>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)