19.06.2011, 05:54
Hi, so I'm trying to make it so a player enters the chop shop I've got set up but in the vehicle their in. It puts them and the vehicle in there, but doesn't put them in the vehicle.
My code is:
PLEASE Help.
My code is:
Код:
if(strcmp(cmd, "/chopshop", true) == 0) { new currentveh; currentveh = GetPlayerVehicleID(playerid); if(currentveh = 0) { SendClientMessage(playerid, COLOR_YELLOW, " You're not in a car to enter the chop shop with!"); return 1; } else { new currentveh; currentveh = GetPlayerVehicleID(playerid); SetPlayerInterior(playerid, 1); SetPlayerVirtualWorld(playerid, 25); SetVehiclePos(currentveh, 609.136352, -1.965972, 1000.541687); SetPlayerPos(playerid,609.136352, -1.965972, 1000.541687); PutPlayerInVehicle(playerid, currentveh, 0); SetVehicleVirtualWorld(currentveh, 25); LinkVehicleToInterior(currentveh, 1); SendClientMessage(playerid, COLOR_YELLOW, "Welcome to the Chop Shop!"); return 1; } return 1; }