28.08.2010, 14:11
(
Последний раз редактировалось jaksimaksi; 28.08.2010 в 14:44.
)
How could i make a script likt this: when player kills other players he gets a new gun, i made a script but, when player deads, he is starting to get guns from 0 ... i want that player kills 3 players gets a deagle, and if he deads, he continues to shotgun.. sorry bad english
Код:
public OnPlayerDeath(playerid, killerid, reason) { Gun[playerid] = 0; Gun[killerid]++; if(Gun[killerid] == 3) { new pName[MAX_PLAYER_NAME]; GetPlayerName(killerid,pName,MAX_PLAYER_NAME); new string[128]; format(string,sizeof(string),"%s next lvl, deagle",pName); SendClientMessageToAll(Red, string); ResetPlayerWeapons(killerid); GivePlayerWeapon(killerid, 24, 100); } if(Gun[killerid] == 6) { new pName[MAX_PLAYER_NAME]; GetPlayerName(killerid,pName,MAX_PLAYER_NAME); new string[128]; format(string,sizeof(string),"%s next lvl shotgun",pName); SendClientMessageToAll(Red, string); ResetPlayerWeapons(killerid); GivePlayerWeapon(killerid, 24, 100); } return 1; }