20.11.2013, 16:05
The command is fine, I guess CreateVehicle returns INVALID_VEHICLE_ID. You can make sure by debugging it:
What does it print to the console after using the command?
pawn Код:
CMD:joinderby(playerid, params[])
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid,x,y,z);
new vehicle = CreateVehicle(411, x, y, z, 90, 0, 1, 60);
printf("vehicleid: %d", vehicle);
PutPlayerInVehicle(playerid,vehicle,0);
InDerby[playerid] = 1;
return 1;
}