Can Someone Please Help Me Fix This Command!
#1

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/vipisland", cmdtext, true) == 0){
if(IsPlayerVipType(playerid,3)) return SendClientMessage(playerid, 0xF60000AA, "You're Not A VIP Member!");
if(GetPlayerMoney(playerid) < 20000) return SendClientMessage(playerid, 0xF60000AA, "You Don't have $20000 To Go To The VIP Island!");
GivePlayerMoney(playerid, -20000);
SetPlayerPos(playerid, -3007.594238 ,1680.358887 ,-24.591661);
SetPlayerFacingAngle(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerHealth(playerid,100);
SendClientMessage(playerid, 0x3DD926FF, "Welcome To The VIP Island");
return 1;
}
Reply
#2

Wrong Section. Whats wrong with it anyways?
Reply
#3

I Set Myself VIP And It Still Tells You're Not A VIP Member!
Reply
#4

try to put it into the [pawn] tags so its easier to read.

are you sure that you are set to level 3 VIP. That doesnt look like it will work if its any higher or lower.
Reply
#5

Yeah I'M Level 3 VIP
Reply
#6

pawn Код:
f(IsPlayerVipType(playerid,3)) return SendClientMessage(playerid, 0xF60000AA, "You're Not A VIP
...
Reply
#7

pawn Код:
if(IsPlayerVipType(playerid,3)) return SendClientMessage(playerid, 0xF60000AA, "You're Not A VIP Member!");
Now you're telling the script that when the player IS a type 3 VIP, it rejects them access.

pawn Код:
if(!IsPlayerVipType(playerid,3)) return SendClientMessage(playerid, 0xF60000AA, "You're Not A VIP Member!");
Tells the script that when a player is NOT a type 3 VIP, he hasn't got access.
Reply
#8

Thanks Bro!
Reply
#9

Hey Guys I Started A Good Server and I'm Searchin For A Good Scripter!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)