10.03.2012, 15:22
Код:
forward treetutrespawn(); new obj;
Код:
public OnGameModeInit() { obj = CreateObject(680, -1227.4000244141, -3230.5, 1.2000000476837, 0, 0, 0); }
Код:
public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == pickup1) { new string[50]; new movetime = MoveObject(obj, -1227.4000244141, -3230.5, -50, 12000); format(string, sizeof(string), " ", movetime); SendClientMessage(playerid, 0xFF000000, string); SetTimer("treetutrespawn",12000,true); } }
Код:
public treetutrespawn() { MoveObject(obj, -1227.4000244141, -3230.5, 1.2000000476837, 12000); pickup1 = CreatePickup(19130, 2, -1226, -3230, 2, 0); }