need vip help :D
#1

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;
}
Reply
#2

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..
Reply
#3

I have VIP system in gamemode
Reply
#4

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
Reply
#5

move filterscript in gamemode then put if(pInfo[playerid][pVipLevel] >= 1) in the vip cmd on top
Reply
#6

Epicman, each gamemode and each vip system have a different enum.
Reply
#7

yes but i think i gave him a good example so he will figure it out now
Reply
#8

Anyone help me plz +REP
Reply
#9

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..
Reply
#10

Moved. now wat?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)