07.08.2011, 23:08
Hello, I have this
command on the gamemode, and I would like to somehow save the license plates.
I can help someone make a save file? Please helpme ....
If you need something gamemode, ask me.
Quote:
if (strcmp(cmd, "/changeplate", true, 12)==0) { cmd = strtok(cmdtext, idx); if(!strlen(cmd)) { SendClientMessage(playerid, 0xFFFFFFAA, "USAGE: /changeplate [platenumber (up to 8 chars, use '-' for space char)]"); return 1; } if(IsPlayerInAnyVehicle(playerid) == 1) { SetVehicleNumberPlate(GetPlayerVehicleID(playerid) , cmd); new vehid=GetPlayerVehicleID(playerid); SetVehicleToRespawn(vehid); SendClientMessage(playerid, 0xFF9900AA, "License plate changed!"); new Float; new Float:y; new Float:z; new Float; GetVehicleZAngle(vehid, p); GetPlayerPos(playerid, x, y, z); SetVehiclePos(vehid, x, y, z); SetVehicleZAngle(vehid, p); //GameTextForPlayer(playerid, cmd, 2500, 3); PutPlayerInVehicle(playerid, vehid, 0); return 1; } else { SendClientMessage(playerid, 0xFF9900AA, "You are not in a vehicle."); } return 1; } |
I can help someone make a save file? Please helpme ....
If you need something gamemode, ask me.