Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmd,"/entregarpizza",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if (PlayerInfo[playerid][pEmprego] == 19)
- {
- new carid = GetPlayerVehicleID(playerid);
- if(!IsAPizzaCar(carid))
- {
- SendClientMessage(playerid, 0x00ffffff, "Você precisa estar em uma moto de entregador de pizza.");
- return 1;
- }
- if(!PlayerToPoint(10, playerid, 2094.0020,-1796.8029,13.3828))
- {
- SendClientMessage(playerid, 0x00ffffff, "Você não está na pizzaría");
- return 1;
- }
- new rand = random(sizeof(PizzaChecks));
- SetPlayerCheckpoint(playerid,PizzaChecks[rand][0],PizzaChecks[rand][1],PizzaChecks[rand][2],4);
- SendClientMessage(playerid, 0x00ffffff,"Você pegou uma entrega.!");
- format(string, sizeof(string), "%s pegou uma entrega.!", PlayerName(playerid));
- ProxDetector(30.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Você não é um lixeiro !");
- return 1;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment