Easy help for VIP
#7

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;
}
Reply


Messages In This Thread
Easy help for VIP - by Dainyzxz - 07.01.2011, 01:23
Re: Easy help for VIP - by John_F - 07.01.2011, 01:32
Re: Easy help for VIP - by Dainyzxz - 07.01.2011, 01:42
Re: Easy help for VIP - by John_F - 07.01.2011, 01:57
Re: Easy help for VIP - by Dainyzxz - 07.01.2011, 02:10
Re: Easy help for VIP - by admantis - 07.01.2011, 02:15
Re: Easy help for VIP - by Haydz - 07.01.2011, 02:22
Re: Easy help for VIP - by Dainyzxz - 07.01.2011, 02:22
Re: Easy help for VIP - by John_F - 07.01.2011, 22:41

Forum Jump:


Users browsing this thread: 2 Guest(s)