08.01.2014, 04:08
Basically, I was trying to make it so if you're in a vehicle it will put gold rims on it, otherwise it'll tell you you're not in a vehicle. I'm having an issue with it though. I guess my issue is I don't know how to make it save the user's vehicle id into a variable. How could I accomplish this? Thanks. (I'm trying to get used to variables and if else statements, probably looks like a big noob question, but I'd appreciate any help you can give).
Код:
CMD:goldrims(playerid, params[]) { GetPlayerVehicleID(playerid); if(IsPlayerInVehicle(playerid, vehicleid)); { AddVehicleComponent(GetPlayerVehicleID(playerid), 1080); SendClientMessage(playerid, COLOR_RED, "You have put gold rims on the vehicle!"); } else { SendClientMessage(playerid, COLOR_RED, "You're not in a vehicle!"); } return 1; }