22.03.2013, 14:57
Hi guys, I have a carplate cmd but when i reconnect its not saving, who can help me?
Thanks.
Код:
dcmd_carplate(playerid,params[]) { new ID = GetPlayerVehicleID(playerid); new string[128]; if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0x00FFFFFF, "You're not in a vehicle"); if(string > 10 || string < 0) return SendClientMessage(playerid, 0xFF0000FF, "-Carplate- Only 10 <Letters/Numbers>.(1-10)"); if(!strlen(params)) return SendClientMessage(playerid, 0x00FFFFFF, "Usage: /plate <number/name>"); else { SetVehicleNumberPlate(ID, params); SetVehicleToRespawn(ID); format(string,sizeof(string),"{F216FA}You've changed your{00EEFF} VehicleID: {D9FA00}%d {FAD900}plate's for: {00FF88}%s",GetVehicleModel(ID),params); SendClientMessage(playerid, 0x00FFFFFF, string); PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0); } return 1; }