Guest User

Untitled

a guest
Feb 25th, 2014
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1.  
  2. CMD:zaladuj(playerid, params[])
  3. {
  4. {
  5.  
  6. TextDrawShowForPlayer(playerid, Towar[playerid]);
  7. if(!IsPlayerInAnyVehicle(playerid))
  8. {
  9. SendClientMessage(playerid,COLOR_YELLOW,">>Chcesz dostarczyc towar na pieszo?");
  10. return 1;
  11. }
  12. if(zaladowany[playerid] != 0)
  13. {
  14. SendClientMessage(playerid,COLOR_YELLOW, "[INFO]Jesteś już załadowany!");
  15. return 1;
  16. }
  17.  
  18. if(UzylRozladuj[playerid]==1)
  19. {
  20. SendClientMessage(playerid, COLOR_RED, "Niedawno rozładowałeś towar, spróbój za kilka minut :)");
  21. return 1;
  22. }
  23. if(!IsPlayerInCheckpoint(playerid) && (playerCheckpoint[playerid] == CP_1 || CP_2 || CP_3 || CP_4 || CP_5 || CP_6 || CP_7 || CP_8 || CP_9 || CP_10 || CP_11 || CP_12 || CP_13 || CP_14 || CP_15 || CP_16 || CP_17 || CP_18 || CP_19 || CP_20 || CP_21 || CP_22 || CP_23 || CP_24 || CP_25 || CP_26 || CP_27|| CP_28|| CP_29|| CP_30|| CP_31|| CP_32|| CP_33|| CP_34|| CP_35))
  24. {
  25. SendClientMessage(playerid, COLOR_RED, "Nie jesteś w wyznaczonym markerze!");
  26. return 1;
  27. }
  28.  
  29. if(IsPlayerInCheckpoint(playerid) && (playerCheckpoint[playerid] == CP_1 || CP_2 || CP_3 || CP_4 || CP_5 || CP_6 || CP_7 || CP_8 || CP_9 || CP_10 || CP_11 || CP_12 || CP_13 || CP_14 || CP_15 || CP_16 || CP_17 || CP_18 || CP_19 || CP_20 || CP_21 || CP_22 || CP_23 || CP_24 || CP_25 || CP_26 || CP_27|| CP_28|| CP_29|| CP_30|| CP_31|| CP_32|| CP_33|| CP_34|| CP_35))
  30. {
  31. ShowPlayerDialog(playerid,Zaladuj,DIALOG_STYLE_LIST,"Zaladunki","Legalne\nNielegalne lub Przeladowane","Wybierz","Anuluj");
  32. SetTimerEx("cdOdlicz", 1000, 0, "d", 60);
  33. TogglePlayerControllable(playerid,0);
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment