[Question] I need help making doors VIP only.
#9

Quote:
Originally Posted by PT
Посмотреть сообщение
only put a vip command here
This is a VIP Command, and to the others, this script is pretty different to others and is /dedit not for drugs, for editing dynamic doors.

Quote:

CMD:vipbuddy(playerid, params[])
{
new playerb, string[128];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(PlayerInfo[playerid][pVIP] < 3) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
if(PlayerInfo[playerid][pVIPBuddy])
{
format(string, sizeof(string), " You need to wait %d more hours before giving someone else Bronze VIP.", PlayerInfo[playerid][pVIPBuddy]);
SendClientMessage(playerid, COLOR_GREY, string);
return 1;
}
if(sscanf(params, "u", playerb)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /vipbuddy [playerid]");
if(PlayerInfo[playerb][pVIP]) return SendClientMessage(playerid, COLOR_GREY, "Player is already VIP");
PlayerInfo[playerid][pVIPBuddy] = 12;
PlayerInfo[playerb][pVIP] = 1;
PlayerInfo[playerb][pVIPTemp] = 60;
format(string, sizeof(string), " You have given %s temporary Bronze VIP package for an hour.", RPN(playerb));
SendClientMessage(playerid, COLOR_VIP, string);
format(string, sizeof(string), " %s has given you temporary Bronze VIP package for an hour.", RPN(playerid));
SendClientMessage(playerb, COLOR_VIP, string);
return 1;
}

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)