24.01.2013, 15:18
with sscanf+zcmd plz.
CMD:god(playerid, params[])
{
new id;
if(sscanf(params, "u", id)) return SendClientMessage(playerid, -1, "USAGE : /god [playerid/part of name]");
if(id == INVALID_PLAYER_ID)) return SendClientMessage(playerid, -1, "wrong id");
SetPlayerHealth(id, 1000000);
SetPlayerArmour(id, 1000000);
return 1;
}
CMD:god(playerid, params[])
{
new id;
if(sscanf(params, "u", id)) return SendClientMessage(playerid, -1, "USAGE : /god [playerid/part of name]");
if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "wrong id");
SetPlayerHealth(id, 1000000);
SetPlayerArmour(id, 1000000);
return 1;
}