SA-MP Forums Archive
Can Someone Please Help Me Fix This Command! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Can Someone Please Help Me Fix This Command! (/showthread.php?tid=174197)



Can Someone Please Help Me Fix This Command! - Moss - 04.09.2010

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;
}


Re: Can Someone Please Help Me Fix This Command! - willsuckformoney - 05.09.2010

Wrong Section. Whats wrong with it anyways?


Re: Can Someone Please Help Me Fix This Command! - Moss - 05.09.2010

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


Re: Can Someone Please Help Me Fix This Command! - Hal - 05.09.2010

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.


Re: Can Someone Please Help Me Fix This Command! - Moss - 05.09.2010

Yeah I'M Level 3 VIP


Re: Can Someone Please Help Me Fix This Command! - WillyP - 05.09.2010

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


Re: Can Someone Please Help Me Fix This Command! - Hiddos - 05.09.2010

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.


Re: Can Someone Please Help Me Fix This Command! - Moss - 05.09.2010

Thanks Bro!


Re: Can Someone Please Help Me Fix This Command! - Moss - 05.09.2010

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