05.06.2010, 11:50
Код:
new soldier[MAX_PLAYERS] = 1; new zombie[MAX_PLAYERS] = 0; OnPlayerSpawn(playerid) { if(soldier[playerid] == 1) { //code for weapons //get the weapon ids and below is an example on how to give a player a weapon } else if(zombie[playerid] == 1) { SetPlayerSkin(playerid,skinid); //replace the skinid with a zombie id of your choice. GivePlayerWeapon(playerid,9,1); //chainsaw } OnPlayerDeath(playerid,killerid,reason) { ResetPlayerWeapns(playerid); soldier[playerid] = 0; zombie[playerid] = 1; return 1; }