14.08.2011, 16:52
Sorry to disturb you errors are fixed now
CMD:spoiler(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, -1979.3672,440.1091,27) || IsPlayerInRangeOfPoint(playerid, 7.0, -1913.9288, 303.6583, 41.1585)) {
if(GetPlayerMoney(playerid) < 4999) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough Cash!");
{
if(IsPlayerInAnyVehicle(playerid)) {
if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) {
SendClientMessage(playerid, COLOR_WHITE, "You are not the driver");
return 1;
}
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if(IsTuner(GetVehicleModel(vehicleid))) {
ShowPlayerDialog(playerid,1240,DIALOG_STYLE_LIST,"Spoilers","Spoiler Pro\nSpoiler Win\nSpoiler Drag\nSpoiler Alpha\nSpoiler Race\nSpoiler Worx\nRemove Spoiler","Ok", "Cancel");
return 1;
}
}
else {
SendClientMessage(playerid, COLOR_WHITE, " You are not in a vehicle");
}
}
else {
SendClientMessage(playerid, COLOR_WHITE, " You are not in a Spoiler Shop");
}
}
return 1;
}