SA-MP Forums Archive
My VIP doenst work for only VIPS and my teleport.. - 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)
+--- Thread: My VIP doenst work for only VIPS and my teleport.. (/showthread.php?tid=299767)



My VIP doenst work for only VIPS and my teleport.. - ikbenremco - 27.11.2011

I am trying to make my server a bit VIP friendly i am making all types of commands !

So first my VIP system for neon it is just it work for not VIP to , And i want for only lvl 2 vips !

Quote:

CMD:neon(playerid,params[])
{
#pragma unused params
if(Player[playerid][VipRank] == 2)
{
GivePlayerMoney(playerid,-5000);
SendClientMessage(playerid, COLOR_RED, "Your 500 Rupees Have Been Taken By Using The Command");
ShowPlayerDialog(playerid, 45, DIALOG_STYLE_MSGBOX, "VIP Neon System Commands", "/blue , /red , /green , /white , /pink , /yellow , /removeneon", "THANKS", "NOPE");
}
else
{
SendClientMessage(playerid, COLOR_RED, "You're not a VIP");
}
return 1;
}

How to teleport a player while in a car ? if i do this just the player will be tped not the vehicle

Quote:

command(lowtune, playerid, params[]) {

if(Player[playerid][Viplevel] >= 2) {

SetPlayerInterior(id, SpawnInt);
SetPlayerPos(id, SpawnX, SpawnY, SpawnZ);
SetPlayerVirtualWorld(id, 0);
SendClientMessage(playerid, RED, "You're teleported to LOW rider tuning!");
}
}