07.02.2016, 12:26
hay all im new in samp scripting, i have door system but if get in door if dynamic object allways fall im creat interior inthe sky.
this my code
how to use timer for freeze player wen stream loading?
sory for my bad english
this my code
Код HTML:
CMD:enter(playerid, params[]) { for(new i=0; i < MAX_DOORS; i++) { if(!IsPlayerInRangeOfPoint(playerid, 2.0, DoorInfo[i][dExteriorX], DoorInfo[i][dExteriorY], DoorInfo[i][dExteriorZ]) && DoorInfo[i][dExteriorInt] == GetPlayerInterior(playerid) && DoorInfo[i][dExteriorVir] == GetPlayerVirtualWorld(playerid)) continue; SetPlayerInterior(playerid, DoorInfo[i][dInteriorInt]); SetPlayerVirtualWorld(playerid, DoorInfo[i][dInteriorVir]); SetPlayerPos(playerid, DoorInfo[i][dInteriorX], DoorInfo[i][dInteriorY], DoorInfo[i][dInteriorZ]); SetPlayerFacingAngle(playerid, DoorInfo[i][dInteriorAngle]); SetCameraBehindPlayer(playerid); } return 1; }
sory for my bad english