Quote:
Originally Posted by jlalt
PHP код:
if( pinfo[playerid][adminlevel] += 1 )
;_; are you good sir?
PHP код:
if( pinfo[playerid][adminlevel] >= 1 )
about return , you simple needed a return 1; somewhere so ->
PHP код:
CMD:kick(playerid, params[])
{
new id;
if (sscanf(params, "u", id)) return SendClientMessage(playerid,-1, "usage: /kick <id>");
if( pinfo[playerid][adminlevel] >= 1 )
{
Kick(id);
}
else
{
SendClientMessage (playerid, -1, "you dont have permission!");
}
return 1;
}
|
Yes you correct, this is just fault of attention