help cmd
#2

pawn Код:
CMD:makemevip(playerid, params[])
{
    if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid, red, "ERROR: You must be logged in to use this commands");
    new level = 1; //change this if u want. 1 = level 1 etc
    if(PlayerInfo[playerid][vip] >= level) return SendClientMessage(playerid, red, "ERROR: You are already VIP.");
    GameTextForPlayer(playerid, "VIP[]Promoted", 2000, 3);
    dUserSetINT(PlayerName2(playerid)).("vip",(level));
    PlayerInfo[playerid][vip] = level;
    PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, -1, "Congratulations! You are now VIP!");
    return 1;
}
Reply


Messages In This Thread
help cmd - by nbx2000 - 19.11.2018, 03:59
Re: help cmd - by ReD_HunTeR - 19.11.2018, 07:20
Re: help cmd - by nbx2000 - 19.11.2018, 17:42

Forum Jump:


Users browsing this thread: 1 Guest(s)