12.03.2011, 17:14
Ehm that stock IsAVip(playerid) (no forward needed) I made was actually already good.
And here's a little command with ZCMD about that thing you posted
And you can change the 'return 0;' with 'return SendClientMessage(playerid, 0xFF0000AA, "Message");'. Change "Message" with the message you wanna show (eg. "Vips only!" and "You're not near the entrance!")
pawn Код:
stock IsAVip(playerid, reqlevel = 1)
PlayerInfo[playerid][pDonateRank] >= reqlevel ? true : false;
pawn Код:
CMD:entervip(playerid, params[])
{
if(!IsAVip(playerid)) return 0;
if(!IsPlayerInRangeOfPoint(playerid, 8, 1797.4569, -1578.9788, 14.0858)) return 0;
SetPlayerInterior(playerid, 7);
SetPlayerPos(playerid, 773.579956, -77.096694, 1000.655029);
GameTextForPlayer(playerid, "~w~VIP", 5000, 1);
PlayerInfo[playerid][pInt] = 14;
return 1;
}