SA-MP Forums Archive
License Plates? - 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: License Plates? (/showthread.php?tid=204500)



License Plates? - Luis- - 29.12.2010

This does not want to work for some reason?
pawn Код:
if(newcar >= 71 && newcar <= 74)
        {
            if (HireCar[playerid] != newcar)
            {
                new string[128];
                format(string, sizeof(string), "~w~You can Rent this car~n~Cost:~g~$%d~n~~w~To rent type ~g~/rentcar~w~~n~to get out type ~r~/exit",BizzInfo[8][bEntcost]);
                TogglePlayerControllable(playerid, 0);
                GameTextForPlayer(playerid, string, 5000, 3);
                SetVehicleNumberPlate(HireCar[playerid], "Hire Car");
                SetVehicleToRespawn(HireCar[playerid]);
            }

        }
I just want it to set the License Plate everytime it spawns...