19.01.2013, 16:15
Hey guys, this might be a big question but i was wondering on how to make a /makeadmin [ID] cmd which will set the player status to admin and how do i have something like if IsPlayerAdmin ??
//ZCMD Include needed
//SSCANF Include needed
CMD:makeadmin(playerid,params[])
{
if(IsPlayerAdmin(playerid))
{
new id,level;
if(sscanf(params,"ud",id,level)) return SendClientMessage(playerid,-2,"USAGE: /makeadmin [playerid] [level]");
{
//PlayerInfo Variable Example: PlayerInfo[id] = level;
}
}
return 1;
}