21.03.2011, 06:33
Код:
if (strcmp("/AirDM", cmdtext, true) == 0) { SetPlayerPos(playerid, 1445.0975,-1055.0232,213.3828); ResetPlayerWeapons(playerid); SetPlayerHealth(playerid, 100); GivePlayerWeapon(playerid, 30, 1000); GivePlayerWeapon(playerid, 29, 1000); GivePlayerWeapon(playerid, 18, 50); GivePlayerWeapon(playerid, 32, 1000); GivePlayerWeapon(playerid, 46, 1); GivePlayerWeapon(playerid, 26, 500); new name[MAX_PLAYER_NAME]; new msg[256]; GetPlayerName(playerid,name,MAX_PLAYER_NAME); format(msg,sizeof(msg),"%s [%i] has been teleported to Air Deathmatch Arena To Join Use [/Airdm].",name,playerid); SendClientMessageToAll(COLOR_GREEN,msg); return 1; }
When player do /airdm they will be teleportrd to the place and get weapons after 25 seconds and after getting weapon no one can join it till it ends.And the player who will win will get a rocket with 20 ammo.
Please Help