Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerEnterCheckpoint(playerid)
- {
- new string[128];
- switch(Checkpoint[playerid]) {
- case 1: {
- DisablePlayerCheckpoint(playerid);
- Checkpoint[playerid] = 0;
- SCM(playerid, -1, "Foloseste /work.");
- return 1;
- }
- case 2: SetPlayerCheckpoint(playerid, 2461.2788,1682.8472,11.0234, 3.0) Checkpoint[playerid] ++;
- case 3: SetPlayerCheckpoint(playerid, 2561.8125,1561.8441,10.8203, 3.0) Checkpoint[playerid] ++;
- case 4: SetPlayerCheckpoint(playerid, 2581.3254,1060.5686,11.7751, 3.0) Checkpoint[playerid] ++;
- case 5: SetPlayerCheckpoint(playerid, 2239.0520,1285.5895,10.8203, 3.0) Checkpoint[playerid] ++;
- case 6: SetPlayerCheckpoint(playerid, 1029.3654,2005.4865,11.4609, 3.0) Checkpoint[playerid] ++;
- case 7: SetPlayerCheckpoint(playerid, 1030.8094,2028.4299,11.4683, 3.0) Checkpoint[playerid] ++;
- case 8: SetPlayerCheckpoint(playerid, 984.5137,2030.2045,11.4688, 3.0) Checkpoint[playerid] ++;
- case 9: SetPlayerCheckpoint(playerid, 1084.3754,2032.0221,11.4683, 3.0) Checkpoint[playerid] ++;
- case 10: SetPlayerCheckpoint(playerid, 1085.4152,2000.8522,11.4609, 3.0) Checkpoint[playerid] ++;
- case 11: SetPlayerCheckpoint(playerid, 1084.5104,1976.9949,11.4688, 3.0) Checkpoint[playerid] ++;
- case 12: SetPlayerCheckpoint(playerid, 2556.8208,2022.3246,10.8176, 3.0) Checkpoint[playerid] ++;
- case 13: SetPlayerCheckpoint(playerid, 2018.5828,2766.5452,10.8265, 3.0) Checkpoint[playerid] ++;
- case 14: {
- DisablePlayerCheckpoint(playerid);
- Checkpoint[playerid] = 0;
- new money 50000 + random(70000);
- GivePlayerMoney(playerid, money);
- format(string, sizeof(string), "Salariul tau este de $%d", money);
- SCM(playerid, 0xD4FF00FF, string);
- FinishJob(playerid);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment