07.01.2011, 02:22
or if you want ZCMD, you would have to add your admin level system to this command if you wanted only admins to do it.
pawn Код:
COMMAND:givevip(playerid, params[]) //the command
{
new giveplayerid,pName[24],gName[24],string[100];
if(sscanf(params, "d", giveplayerid))return SendClientMessage(playerid, 0xFFFFFFFF, "/givevip [playerid/name]");
else if(!IsPlayerConnected(giveplayerid))return SendClientMessage(playerid, 0xFF0000FF, "Player is not connected");
else
{
GetPlayerName(playerid, pName,24);
GetPlayerName(giveplayerid,gName,24);
VIP[giveplayerid] = 1;
format(string, sizeof(string),"You gave player %s VIP",gName);
SendClientMessage(playerid,0xFFFFFFAA,string);
SendClientMessage(giveplayerid,0xFFFFFFAA,"You are now a VIP player");
}
return 1;
}