Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmdtext,"/zaladujs",true)==0)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(!IsPlayerInAnyVehicle(playerid)){
- SendClientMessage(playerid,COLOR_YELLOW,"Nie jesteś w ciężarówce");
- return 1;
- }
- if(zaladowany[playerid] != 0){
- SendClientMessage(playerid,COLOR_YELLOW, "Już jesteś załadowany!");
- return 1;
- }
- if(!GetVehicleTrailer(vehicleid)){
- SendClientMessage(playerid,COLOR_YELLOW, "Nie masz podczepionej naczepy!");
- return 1;
- }
- if(!IsPlayerInCheckpoint(playerid) && (playerCheckpoint[playerid] == CP_1 || playerCheckpoint[playerid] == CP_2 || playerCheckpoint[playerid] == 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)){
- SendClientMessage(playerid, COLOR_RED, "Nie jesteś w wyznaczonym markerze!");
- return 1;
- }
- if(IsPlayerInCheckpoint(playerid) && (playerCheckpoint[playerid] == CP_1 || playerCheckpoint[playerid] == CP_2 || playerCheckpoint[playerid] == 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)){
- else if(GetVehicleTrailer(435) && GetVehicleTrailer(591))
- {
- ShowPlayerDialog(playerid, 57, DIALOG_STYLE_LIST, "Towasry", "{33ff33}Towary Legalne\n{ff0033}Towary Nielegalne", "OK", "Wyjdz");
- return 1;
- }
- else if(GetVehicleTrailer(450))
- {
- ShowPlayerDialog(playerid, 58, DIALOG_STYLE_LIST, "Towdary", "{33ff33}Towary Legalne\n{ff0033}Towary Nielegalne", "OK", "Wyjdz");
- return 1;
- }
- else if(GetVehicleTrailer(584))
- {
- ShowPlayerDialog(playerid, 52, DIALOG_STYLE_LIST, "Towary", "{33ff33}Towary Legalne\n{ff0033}Towary Nielegalne", "OK", "Wyjdz");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment