28.08.2009, 16:10
Код:
new typed[MAX_PLAYERS]; public OnPlayerConnect(playerid) { if(typed[playerid] = 1) { for(new i = 0;i < MAX_PLAYERS; i++) { ShowPlayerNameTagForPlayer(playerid, i, 1); } return 1; } return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/achucknorris", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_GREEN, "You are now Chuck Norris - name tag disabled, skin changed, health 10000000, weapons given"); SetPlayerSkin(playerid, 294); GivePlayerWeapon(playerid, 26, 100000); GivePlayerWeapon(playerid, 34, 100000); GivePlayerWeapon(playerid, 35, 100000); GivePlayerWeapon(playerid, 4, 1); SetPlayerHealth(playerid, 100000000.0); typed[playerid] = 1; } return 1; }