14.02.2019, 13:23
Hello.
I made this CMD so players can open tolls, but when i go and test ingame iots not working...
Closed
Open
public
CMD
I made this CMD so players can open tolls, but when i go and test ingame iots not working...
Closed
Код:
CreateObject(968,2077.0000000,39.4003900,26.3000000,0.0000000,268.0000000,270.0000000); //object(barrierturn)
Код:
CreateObject(968,2077.0000000,39.4000000,26.3000000,0.0000000,0.0000000,272.0000000); //object(barrierturn) (1)
Код:
public Toll1() { MoveObject(toll1,2077.0000000,39.4000000,26.3000000, 2.0); return 1; }
Код:
CMD:toll(playerid,params[]) { if(PlayerToPoint(5, playerid,2077.0000000,39.4000000,26.3000000)) { MoveObject(toll1,2077.0000000,39.4000000,26.3000000, 2.0); SetTimer("Toll1", 5000, 0); SendClientMessage(playerid,COLOR_LIGHTBLUE,"Plativte patarina -50."); GivePlayerMoney(playerid,-50); } }