SendClientMessageToAll(playerid, "%s entered in /minigun deathmatch");
}
if (strcmp("/minigun", cmdtext, true,10) == 0)
{
if(GetPlayerMoney(playerid) >= 1000)
{
SendClientMessage(playerid, COLOR_GREY, "Acabaste de entrar na MiniGun DeathMatch");
SendClientMessage(playerid, COLOR_RED, "LUTA!!!");
SetPlayerColor(playerid, 14);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
new Float:SpawnRandomico[10][12] = {
{-2185.6641,-247.9104,40.7195},
{-2141.2517,-233.1832,36.5156},
{-2186.3408,-208.0707,36.5156},
{-2175.0557,-235.4763,40.3849},
{-2143.4038,-265.6692,36.5156},
{-2184.3438,-262.8202,40.7195},
{-2162.0491,-268.8615,40.7195},
{-2142.8584,-262.9359,40.7195},
{-2185.3477,-248.5821,36.5156},
{-2140.1064,-235.6455,40.4382}
};
new rand = random(sizeof(SpawnRandomico));
SetPlayerPos(playerid, SpawnRandomico[rand][0], SpawnRandomico[rand][1], SpawnRandomico[rand][2]);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,38,50000);
GivePlayerMoney(playerid, -1000);
GameTextForPlayer(playerid,"-~y~1000", 1000, 6);
}
else
{
SendClientMessage(playerid, COLOR_RED, "Nгo tens 1000$!");
return 1;
}

new str[128];
GetPlayerName(playerid, str, MAX_PLAYER_NAME);
format(str, sizeof str, "%s entered in /minigun deathmatch", str);
SendClientMessageToAll(COLOR_GREY, str);
|
Originally Posted by Nubotron
pawn Код:
![]() |