09.02.2009, 01:17
ok im working on this car valet script but when i type /unvalet (after its been valed) it crashes my game.
can anyone plz fix whats wrong wth my script!!!
here it is:
on the top:
on the /cmds:
all i want to do is be able to do /valet, have the car disaper but save the car id so when i type: /unvalet the same car spawns back in in the position i set it to. it would also be nice to save the car color. PLZ AND THX FOR ANYONE WHO CAN FIX MY SCRIPT
can anyone plz fix whats wrong wth my script!!!
here it is:
on the top:
Код:
new carvalet; // valet cars to player club!
Код:
if(strcmp(cmdtext,"/valet",true)==0) { carvalet = GetPlayerVehicleID(playerid); RemovePlayerFromVehicle(playerid); DestroyVehicle(carvalet); carisvaled = 1; return 1; } if(strcmp(cmdtext,"/unvalet",true)==0) { new carid; carid = CreateVehicle(carvalet, 2001.6718,1769.9086,10.6719,95.6376, 0, 1,50000); PutPlayerInVehicle(playerid,carid,0); carisvaled = 0; return 1; }