SA-MP Forums Archive
Car Plate saving when onplayerdisconnect - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Car Plate saving when onplayerdisconnect (/showthread.php?tid=424502)



Car Plate saving when onplayerdisconnect - Youtube12 - 22.03.2013

Hi guys, I have a carplate cmd but when i reconnect its not saving, who can help me?

Код:
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;
}
Thanks.


AW: Car Plate saving when onplayerdisconnect - Youtube12 - 22.03.2013

No one help?


Re: Car Plate saving when onplayerdisconnect - Rock - 22.03.2013

Of course it will not.
Use THIS.


AW: Car Plate saving when onplayerdisconnect - Youtube12 - 22.03.2013

Only with y_ini ??
Is there any other way to do it?


Re: Car Plate saving when onplayerdisconnect - Rock - 22.03.2013

Click.


AW: Car Plate saving when onplayerdisconnect - Youtube12 - 22.03.2013

I dont understand how to do it, can u make it for me?