Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:zaladuj(playerid, params[])
- {
- {
- TextDrawShowForPlayer(playerid, Towar[playerid]);
- if(!IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid,COLOR_YELLOW,">>Chcesz dostarczyc towar na pieszo?");
- return 1;
- }
- if(zaladowany[playerid] != 0)
- {
- SendClientMessage(playerid,COLOR_YELLOW, "[INFO]Jesteś już załadowany!");
- return 1;
- }
- if(UzylRozladuj[playerid]==1)
- {
- SendClientMessage(playerid, COLOR_RED, "Niedawno rozładowałeś towar, spróbój za kilka minut :)");
- return 1;
- }
- 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))
- {
- SendClientMessage(playerid, COLOR_RED, "Nie jesteś w wyznaczonym markerze!");
- return 1;
- }
- 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))
- {
- ShowPlayerDialog(playerid,Zaladuj,DIALOG_STYLE_LIST,"Zaladunki","Legalne\nNielegalne lub Przeladowane","Wybierz","Anuluj");
- SetTimerEx("cdOdlicz", 1000, 0, "d", 60);
- TogglePlayerControllable(playerid,0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment