03.01.2018, 09:58
Quote:
PHP код:
|
This is an example that i use on my gamemode:
Код:
new closeddoor13; //under ongamemodeinit closeddoor13=CreateObject(2930, 2571.82983, -1532.14771, -47.34000, 0.00000, 0.00000, 90.00000); // execute with OpenDoor13(playerid, 5000); stock OpenDoor13(playerid, time) { new str[128]; MoveObject(closeddoor13, 2573.22778, -1532.11182, -47.34000, 2.0); format(str,sizeof(str),"%s(%i) inserts an code and presses the confirm button.",PlayerName(playerid),playerid); SetTimerEx("CloseDoor13", time, false, "i", playerid); SendNearbyMessage(playerid,30.0,str,ORANGE); } forward CloseDoor13(playerid); public CloseDoor13(playerid) { MoveObject(closeddoor13, 2571.82983, -1532.14771, -47.34000, 2.0); }