Quote:
Originally Posted by EnzoMetlc
pawn Код:
CMD:goldrims(playerid, params[]) { if(IsPlayerInAnyVehicle(playerid)) { 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; }
|
I literally just switched to this code, right before you posted this. I found the reason it wasn't working, the similar code I was using, I put a ; after if(IsPlayerInAnyVehicle(playerid)). Thanks for the help though.