02.05.2014, 12:22
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
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; }