18.08.2015, 06:12
hey so.. i dont know how to fix it..
first i use dialog to create bike:
Later i use timer to check if server can destroy bike but server dont destroy it...
first i use dialog to create bike:
Код:
new Engine, Lights, Alarm, Doors, Bonnet, Boot, Objective; CreateVehicle(510, -324.7136,1079.9130,19.7422,274.5824, -1, -1, 60); GetVehicleParamsEx(510, Engine, Lights, Alarm, Doors, Bonnet, Boot, Objective); SetVehicleParamsEx(510, true, false, Alarm, Doors, Bonnet, Boot, Objective); PutPlayerInVehicle(playerid, 510, 0); SendClientMessage(playerid, -1, "• Test Message"); GivePlayerMoneyA(playerid, -100);
Код:
SetTimer("DestroyBikes", 60000, false); } forward DestroyBikes(playerid); public DestroyBikes(playerid) { DestroyVehicle(510); return 1;