Quote:
Originally Posted by Clive
pawn Код:
forward CreatePlayerVehicle(playerid,modelid); public CreatePlayerVehicle(playerid,modelid) { if(PlayerVehicle[playerid]!=0) return 0; new Float:x, Float:y, Float:z, Float:angle; GetPlayerPos(playerid, x, y, z); GetPlayerFacingAngle(playerid, angle); new vehicleid = CreateVehicle(modelid, x, y, z, angle, -1, -1, -1); PutPlayerInVehicle(playerid, vehicleid, 0); SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid)); LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid)); PlayerVehicle[playerid] = 1; return 1; }
|
Thanks but don't work ... :-/ <_<