Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// public Toll1()
- {
- patarina1 = 0;
- RotateObject(toll1,0.0,90.0,81.2494202,3);
- return 1;
- }
- ////////////////////////////////////////////////////
- toll1 = CreateDynamicObject(968,49.8909988,-1542.4610596,4.9349999,0.0000000,90.0000000,81.2494202); //object(barrierturn) (1)
- ////////////////////////////////////////////////////
- CMD:toll(playerid,params[])
- {
- new sendername[MAX_PLAYER_NAME+1],string[128];
- if(PlayerToPoint(7, playerid,51.1809998,-1535.6569824,4.9349999))
- {
- if(patarina1 == 1)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Rampu je vec otvorenu");
- return 1;
- }
- patarina1 = 1;
- RotateObject(toll1,0.0,2.0,81.2438965,3);
- SetTimerEx("Toll1", 5000, false, "i", playerid);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Platili ste patarinu 50$");
- format(string, sizeof(string), "%s vade pare iz dzeba i daje ka patarinu.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GivePlayerMoney(playerid,-50);
- }
- else if(PlayerToPoint(7, playerid,52.3450012,-1527.9329834,4.9349999))
- {
- if(patarina2 == 1)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Rampu je vec otvorenu!");
- return 1;
- }
- patarina2 = 1;
- RotateObject(toll2,0.0,2.0,81.7491455,3);
- SetTimerEx("Toll2", 5000, false, "i", playerid);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Platili ste 50$");
- format(string, sizeof(string), "%s vade pare iz dzeba i daje ka patarinu", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GivePlayerMoney(playerid,-50);
- }
- else if(PlayerToPoint(7, playerid,1641.1419678,-10.9379997,36.3089981))
- {
- if(patarina3 == 1)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Rampu je vec otvorenu!");
- return 1;
- }
- patarina3 = 1;
- RotateObject(toll3,0.0,358.0,203.9996948,3);
- SetTimerEx("Toll3", 5000, false, "i", playerid);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Platile ste patarinu 50$");
- format(string, sizeof(string), "%s vade pare iz dzeba i daje ka patarinu.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GivePlayerMoney(playerid,-50);
- }
- else if(PlayerToPoint(7, playerid,1633.1340332,-13.6759996,36.3709984))
- {
- if(patarina4 == 1)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Rampu je vec otvorenu!.");
- return 1;
- }
- patarina4 = 1;
- RotateObject(toll4,0.0,357.9999390,23.9940491,3);
- SetTimerEx("Toll4", 5000, false, "i", playerid);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Platili ste patarinu 50$");
- format(string, sizeof(string), "%s vade pare iz dzeba i daje ka patarinu.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GivePlayerMoney(playerid,-50);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement