need vip help :D - 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: need vip help :D (
/showthread.php?tid=510751)
need vip help :D -
UfsDev - 02.05.2014
I need to change this FS, Only VIP can use this FS because this FS all player can use i just wanna change to VIP
Ex: Only VIP should use this FS ONLYY
You're not VIP! you cannot use this command
I NEED CODE TO CONVERT TO VIP
Код:
CMD:laser(playerid, params[])
{
if(GetPlayerState(playerid) != 1 && GetPlayerState(playerid) != 2 && GetPlayerState(playerid) != 3 && GetPlayerState(playerid) != 7)
return SendClientMessage(playerid, COLOR_RED, "[Spawned]: You must be spawned, To use this command!");
ShowPlayerDialog(playerid, DIALOG_LASER, DIALOG_STYLE_LIST, ""white"Laser Colors", "Red\nBlue\nPink\nOrange\nGreen\nYellow", "Select", "Cancel");
SendAdminCMD(playerid, "laser");
return 1;
}
CMD:laseron(playerid, params[])
{
PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
GameTextForPlayer(playerid, "~w~Laser ~g~On", 2500, 3);
SetPVarInt(playerid, "laser", 1);
SetPVarInt(playerid, "color", GetPVarInt(playerid, "color"));
SendAdminCMD(playerid, "laseron");
return 1;
}
CMD:laseroff(playerid, params[])
{
PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
GameTextForPlayer(playerid, "~w~Laser ~r~Off", 2500, 3);
SetPVarInt(playerid, "laser", 0);
RemovePlayerAttachedObject(playerid, 0);
SendAdminCMD(playerid, "laseroff");
return 1;
}
Re: need vip help :D -
Eth - 02.05.2014
do you have a vip system? you should have it inside this [FS] If you have it inside this [FS] then show me the vip system. or the enum..
Re: need vip help :D -
UfsDev - 02.05.2014
I have VIP system in gamemode
Re: need vip help :D -
Eth - 02.05.2014
then you should move this [FS] inside your gm then tell me your viplevel enum , i mean how can you detect that the player is vip or not thing
Re: need vip help :D -
EpicMan - 02.05.2014
move filterscript in gamemode then put if(pInfo[playerid][pVipLevel] >= 1) in the vip cmd on top
Re: need vip help :D -
Eth - 02.05.2014
Epicman, each gamemode and each vip system have a different enum.
Re: need vip help :D -
EpicMan - 02.05.2014
yes but i think i gave him a good example so he will figure it out now
Re: need vip help :D -
UfsDev - 02.05.2014
Anyone help me plz
+REP
Re: need vip help :D -
Eth - 02.05.2014
dude first ,move the filterscript inside your gamemode, move everything in the filterscript to your gamemode then tell me your vip enum. and I can help you after that..
Re: need vip help :D -
UfsDev - 02.05.2014
Moved. now wat?