09.04.2010, 05:44
Please! Can anyone help me in this arena, I put it to only 2 players to dm, when it is filled with 2 player in the case, if someone tries to enter a message "You already have 2 players in this arena".
Код:
if(strcmp(cmdtext, "/dm", true) == 0) { SetPlayerInterior(playerid, 0); ResetPlayerWeapons(playerid); SetPlayerPos(playerid,-1845.9524,1069.3036,145.1297); InDM8[playerid] = 1; GivePlayerWeapon(playerid,46,5); new name[MAX_PLAYERS]; new stringa[256]; GetPlayerName(playerid, name, sizeof(name)); format(stringa, sizeof(stringa), "'%s' was to DM. (/dm)", name); SendClientMessageToAll(AzulClaro,stringa); PlayerPlaySound(playerid, 1133, 257.6206, -41.5307, 1002.0234); GivePlayerWeapon(playerid,16,6); GivePlayerWeapon(playerid,31,1000); GivePlayerWeapon(playerid,26,100); GivePlayerWeapon(playerid,32,1000); GameTextForPlayer(playerid,"~r~KILL~n~ALL!", 3000, 5); return 1; }