/makeadmin question
#1

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 ??
Reply
#2

pawn Код:
//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;
}
Reply
#3

But how can it make him admin and save that he is?
Reply
#4

You need a saving system
https://sampforum.blast.hk/showthread.php?tid=352703
https://sampforum.blast.hk/showthread.php?tid=297301
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)