Guest User

Untitled

a guest
Jan 10th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if(IsTruckerCar(vehicleid))
  2. {
  3.     if(PlayerInfo[playerid][pJob] != JOB_TRUCKER && PlayerInfo[playerid][pVIPJob] != JOB_TRUCKER)
  4.     {
  5.         SendClientMessage(playerid, COLOR_ORANGE, "You are not a Trucker.");
  6.             new Float:pos[3];
  7.         GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
  8.         SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
  9.         return 1;
  10.     }
  11.     if(!PlayerInfo[playerid][pDelivery])
  12.     {
  13.         SendClientMessage(playerid, COLOR_ORANGE, "You are not on a delivery.");
  14.             new Float:pos[3];
  15.         GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
  16.         SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
  17.         return 1;
  18.     }
  19.     else
  20.     {
  21.             SetPlayerCheckpoint(playerid, 325.2717,2544.1748,16.8077, 7);
  22.                 SendClientMessage(playerid, COLOR_GREY, "Head to the loading bay and load up your truck.");
  23.         return 1;
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment