AloneZ

Untitled

Jul 21st, 2015
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.14 KB | None | 0 0
  1.     if(strcmp(cmd,"/entregarpizza",true)==0)
  2.     {
  3.         if(IsPlayerConnected(playerid))
  4.         {
  5.             if (PlayerInfo[playerid][pEmprego] == 19)
  6.             {
  7.                 new carid = GetPlayerVehicleID(playerid);
  8.                 if(!IsAPizzaCar(carid))
  9.                 {
  10.                     SendClientMessage(playerid, 0x00ffffff, "Você precisa estar em uma moto de entregador de pizza.");
  11.                     return 1;
  12.                 }
  13.                 if(!PlayerToPoint(10, playerid, 2094.0020,-1796.8029,13.3828))
  14.                 {
  15.                     SendClientMessage(playerid, 0x00ffffff, "Você não está na pizzaría");
  16.                     return 1;
  17.                 }
  18.                 new rand = random(sizeof(PizzaChecks));
  19.                 SetPlayerCheckpoint(playerid,PizzaChecks[rand][0],PizzaChecks[rand][1],PizzaChecks[rand][2],4);
  20.                 SendClientMessage(playerid, 0x00ffffff,"Você pegou uma entrega.!");
  21.                 format(string, sizeof(string), "%s pegou uma entrega.!", PlayerName(playerid));
  22.                 ProxDetector(30.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  23.             }
  24.             else
  25.             {
  26.                  SendClientMessage(playerid, COLOR_GRAD1, "Você não é um lixeiro !");
  27.                  return 1;
  28.             }
  29.         }
  30.         return 1;
  31.     }
Advertisement
Add Comment
Please, Sign In to add comment