Advertisement
darkxdll

trucksistem

Aug 1st, 2013
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.03 KB | None | 0 0
  1. CMD:t(playerid)
  2. {
  3.     new model = GetVehicleModel(GetPlayerVehicleID(playerid));
  4.     if(model == 403 || model == 514 || model == 515)
  5.     {
  6.         if(PlayerInfo[playerid][pClasse] == 1)
  7.         {
  8.             for(new i ; i < 43 ; i++)
  9.             {
  10.                 if(GetVehicleTrailer(GetPlayerVehicleID(playerid)) == BauTrailer[i])
  11.                 {
  12.                     if(PlayerInfo[playerid][pWorking] == 1) return SendClientMessage(playerid,-1,"Você já está trabalhando !");
  13.                     new rand = random(sizeof(TBau));
  14.                     CriarTrabalho(playerid,TBau[rand][CarregarX],TBau[rand][CarregarY],TBau[rand][CarregarZ],TBau[rand][DescarregarX],TBau[rand][DescarregarY],TBau[rand][DescarregarZ],TBau[rand][nome_carga],TBau[rand][nome_rota],TBau[rand][pagamento],TBau[rand][mafia]);
  15.                     return 1;
  16.                 }else{
  17.                     SendClientMessage(playerid,-1,"Você não tem uma carga apropriada !");
  18.                     return 1;
  19.                 }
  20.             }
  21.         }else{
  22.             SendClientMessage(playerid,-1,"Você não é caminhoneiro !");
  23.         }
  24.     }else{
  25.         SendClientMessage(playerid,-1,"Você não está em um veiculo adequado !");
  26.     }
  27.     return 1;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement