2 Questiions -
-CaRRoT - 27.07.2011
Hi, 1st- I Made an /enter CMD and it's working fine and everything But i want that ONLY vip can enter it , like this :
Код:
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1797.5505, -1578.8964, 14.0856)) //V.I.P Lounge
{
GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
Pause(playerid);
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid, 2365.81640625,-1706.4645996094,1195.7257080078);
GameTextForPlayer(playerid, "~b~V.I.P Lounge", 3000, 1);
}
I want to add this to it :
Код:
if(PlayerInfo[playerid][pDonateRank] >= 1)
And i want also if Player Not VIP It SendClientMessage saying : You are not VIP
2nd Question-
I Also made a VIP garage with /Enter CMD and it's working fine - But i want also That's cars can enter / exit it

i made /enter - /exit CMDS for it , but when you do /enter while in car you only Get TP'ed without the car , and also i want only VIP people while on foot / incar can enter it , here is it :
here is the /enter :
Код:
else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1815.5923, -1559.0122, 13.50177)) // v.i.p Garage
{
GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
Pause(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2483.8914,2377.5178,7.5434);
GameTextForPlayer(playerid, "~b~ V.I.P Garage", 3000, 1);
}
here is the /exit :
Код:
else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2483.8914,2377.5178,7.5434)) //V.I.P Garage
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1815.5923, -1559.0122, 13.5017);
SetCameraBehindPlayer(playerid);
}
If you know how please tel me


Re: 2 Questiions -
=WoR=Varth - 28.07.2011
pawn Код:
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1797.5505, -1578.8964, 14.0856)) //V.I.P Lounge
{
if(PlayerInfo[playerid][pDonateRank] >= 1) return SendCLientMessage(playerid,color,"You're not VIP.");
GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
Pause(playerid);
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid, 2365.81640625,-1706.4645996094,1195.7257080078);
GameTextForPlayer(playerid, "~b~V.I.P Lounge", 3000, 1);
}
pawn Код:
else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1815.5923, -1559.0122, 13.50177)) // v.i.p Garage
{
if(IsPlayerInAnyVehicle(playerid))
{
new vid = GetPlayerVehicleID(playerid);
SetVehiclePos(vid,2483.8914,2377.5178,7.5434);
PutPlayerInVehicle(playerid,vid,0);//Idk if the player automatically TP'ed of not so I put this just in case
GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
Pause(playerid);
GameTextForPlayer(playerid, "~b~ V.I.P Garage", 3000, 1);
}
else
{
GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
Pause(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2483.8914,2377.5178,7.5434);
GameTextForPlayer(playerid, "~b~ V.I.P Garage", 3000, 1);
}
}
Re: 2 Questiions -
-CaRRoT - 28.07.2011
wel... in the VIP lounge..lol , Normal people can Enter and VIP's can't , it tell them " You're not VIP
and the VIP Garage give me random 26 error..

, help please
Re: 2 Questiions -
Grim_ - 28.07.2011
The first is a mistype by varthshenon.
pawn Код:
if(PlayerInfo[playerid][pDonateRank] < 1) return SendCLientMessage(playerid,color,"You're not VIP.");
As for the errors, show them and the corresponding lines.
Re: 2 Questiions -
-CaRRoT - 28.07.2011
what do you mean by the corresponding lines ?
Re: 2 Questiions -
-CaRRoT - 28.07.2011
"Bump" - Been one day and it nearly became in the 3rd page - Please help guys about the Garage that cars can enter it