25.09.2010, 14:46
/kill cmd doesnt working :/
im type /kill AndriusZ S and it means:
/kill [Vardas] [Prieћastis]
Quote:
COMMAND:kill(playerid, params[]) { if(PlayerInfo[playerid][gAdmin] > 0) { new id; new priez[128]; if (sscanf(params, "dz", id, priez)) return SendClientMessage(playerid, ZALIA, "GangWars: /kill [Vardas] [Prieюastis]"); if (IsPlayerConnected(id)) { new string[128]; new zaid[128], varduk[128]; GetPlayerName(id,zaid,sizeof(zaid)); GetPlayerName(playerid,varduk,sizeof(varduk)); format(string,sizeof(string),"GangWars: %s nuюudл %s. Prieюastis: %s",varduk,zaid,priez); SendClientMessageToAll(ZALIA, string); PlayerPlaySound(playerid,1057,0.0,0.0,0.0); PlayerPlaySound(id,1057,0.0,0.0,0.0); SetPlayerHealth(id,0.0); } else { ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"GangWars", "Юaidлjas nerastas", "Gerai", "Uюdaryti"); } } else { ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"GangWars", "Рi komanda TIK Administratoriams!", "Gerai", "Uюdaryti"); } return 1; } |
/kill [Vardas] [Prieћastis]