SA-MP Forums Archive
Call Car Script - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Call Car Script (/showthread.php?tid=262038)



Call Car Script - TyThaBomb - 16.06.2011

Trying to make a /rcar (Reserved Car) command where when you type the command, your reserved car comes to you. Having no luck, someone want to give me something to start off of?


Re: Call Car Script - Skaizo - 16.06.2011

Код:
if(strcmp(cmdtext,"/rcar",true) == 0)
{
   new name[MAX_PLAYER_NAME],string[32];
   GetPlayerName(playerid,name,sizeof(name));
   format(string,sizeof(string),"The player \"%s\" has set the vehicles to respawn.",name);
   SendClientMessageToAll(COLOR,string);
   for(new i = 0; i < MAX_VEHICLES; i++)
   {
       if(IsPlayerInVehicle(i,i))
       {
           RemovePlayerFromVehicle(i);
       }
       SetVehicleToRespawn(i);
  }
  return 1;
}



Re: Call Car Script - TyThaBomb - 16.06.2011

Not really what I was looking for, but thanks!


Re: Call Car Script - TyThaBomb - 16.06.2011

How would I go at making that into the script I was talking about?