03.05.2016, 18:31
Hello guys, I have come to such a command here , but she does not work , somehow I get by typing / add_police <nick > lent Player to police dini.
PHP код:
CMD:add_police(playerid, params[])
{
new Gracz [64];
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
format(Gracz,sizeof(Gracz), KONTA ,PlayerName);
if(strcmp(PlayerName, "Chef_Name", true) == 0)
{
if(isnull(params) || strlen(params) > MAX_PLAYER_NAME)
return SendClientMessage(playerid, -1, "/add_police [nick]");
dini_IntSet(Gracz,"Police", 1);
}
return 1;
}