Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:vehicle(playerid, params[])
- {
- new option[8], vID;
- if(sscanf(params, "s[128]d", option, vID))
- return SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /vehicle <destroy/respawn> <ID>"), true;
- if(!strcmp(option, "respawn"))
- {
- SetVehicleToRespawn(vID);
- }
- else if(!strcmp(option, "destroy"))
- {
- DestroyVehicle(vID);
- }
- else
- return SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /vehicle <destroy/respawn> <ID>"), true;
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment