02.08.2013, 19:50
Lol..
It will only work if the players Vip variable is 1, it's doing what it has to do..
The code above will work even if you're not VIP.
pawn Код:
if(PInfo[playerid][Vip] == 1)
pawn Код:
CMD:neon(playerid,params[])
{
if(!IsVehicleValid(GetVehicleModel(GetPlayerVehicleID(playerid)))) return SendClientMessage(playerid, COLOR_ERROR, "You can't use neon on this vehicle.");
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_ERROR, "You must be the driver of a vehicle to use this.");
ShowPlayerDialog(playerid, DIALOG_NEONTYPES, DIALOG_STYLE_LIST, "Neon Settings", "Solid Neon/No Flash\nSimultaneous Flash\nAlternating Flash\nRemove All Neon", "Select", "Cancel");
return 1;
}