31.10.2009, 15:10
pawn Код:
if (strcmp("/rocket", cmdtext, true) == 0)
{
if(MinigameParticipant[playerid]!=1)
{
MinigameParticipant[playerid]=1; // let the system know that heґs in minigame
ResetPlayerWeapons(playerid);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid,100);
SendClientMessageToAll(0x828282FF, "Server: A player has joined the Rocket-Ramba-Zamba. Type /rocket to join as well!");
SendClientMessage(playerid, 0x007F00FF, "Have fun.");
SetPlayerPos(playerid, -1396.8975,1249.1334,1039.8672);
SetPlayerFacingAngle(playerid, 0);
SetPlayerInterior(playerid, 16);
SaveToFile("RocketLog",string);
GivePlayerWeapon(playerid,35,10000);
}
if(MinigameParticipant[playerid]==1)
{
SendClientMessage(playerid, COLOR_RED, "You suck XD");
}
return 1;
}