SHOW:
|
|
- or go back to the newest paste.
1 | - | if(IsTruckerCar(vehicleid)) |
1 | + | if(IsTruckerCar(vehicleid)) |
2 | - | { |
2 | + | { |
3 | - | if(PlayerInfo[playerid][pJob] != JOB_TRUCKER && PlayerInfo[playerid][pVIPJob] != JOB_TRUCKER) |
3 | + | if(PlayerInfo[playerid][pJob] != JOB_TRUCKER && PlayerInfo[playerid][pVIPJob] != JOB_TRUCKER) |
4 | - | { |
4 | + | { |
5 | - | SendClientMessage(playerid, COLOR_ORANGE, "You are not a Trucker."); |
5 | + | SendClientMessage(playerid, COLOR_ORANGE, "You are not a Trucker."); |
6 | - | new Float:pos[3]; |
6 | + | new Float:pos[3]; |
7 | - | GetPlayerPos(playerid, pos[0], pos[1], pos[2]); |
7 | + | GetPlayerPos(playerid, pos[0], pos[1], pos[2]); |
8 | - | SetPlayerPos(playerid, pos[0], pos[1], pos[2]); |
8 | + | SetPlayerPos(playerid, pos[0], pos[1], pos[2]); |
9 | - | return 1; |
9 | + | return 1; |
10 | - | } |
10 | + | } |
11 | - | else |
11 | + | if(!PlayerInfo[playerid][pDelivery]) |
12 | - | { |
12 | + | { |
13 | - | SetPlayerCheckpoint(playerid, 325.2717,2544.1748,16.8077, 7); |
13 | + | SendClientMessage(playerid, COLOR_ORANGE, "You are not on a delivery."); |
14 | - | SendClientMessage(playerid, COLOR_GREY, "Head to the loading bay and load up your truck."); |
14 | + | new Float:pos[3]; |
15 | - | return 1; |
15 | + | GetPlayerPos(playerid, pos[0], pos[1], pos[2]); |
16 | - | } |
16 | + | SetPlayerPos(playerid, pos[0], pos[1], pos[2]); |
17 | - | |
17 | + | return 1; |
18 | - | if(!PlayerInfo[playerid][pDelivery]) |
18 | + | } |
19 | - | { |
19 | + | else |
20 | - | SendClientMessage(playerid, COLOR_ORANGE, "You are not on a delivery."); |
20 | + | { |
21 | - | new Float:pos[3]; |
21 | + | SetPlayerCheckpoint(playerid, 325.2717,2544.1748,16.8077, 7); |
22 | - | GetPlayerPos(playerid, pos[0], pos[1], pos[2]); |
22 | + | SendClientMessage(playerid, COLOR_GREY, "Head to the loading bay and load up your truck."); |
23 | - | SetPlayerPos(playerid, pos[0], pos[1], pos[2]); |
23 | + | return 1; |
24 | - | return 1; |
24 | + | } |
25 | - | } |
25 | + | } |