Car Plate saving when onplayerdisconnect
#1

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.
Reply
#2

No one help?
Reply
#3

Of course it will not.
Use THIS.
Reply
#4

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

Click.
Reply
#6

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


Forum Jump:


Users browsing this thread: 2 Guest(s)