Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Float:RotasSedex[][4] =
- {
- {2347.5012,-1164.4919,27.4431, 3.0},
- {2095.0173,-1308.8472,24.0986, 3.0},
- {2001.0612,-1127.2688,25.5954, 3.0},
- {804.6202,-1455.2427,13.6652, 3.0}
- };
- public OnPlayerEnterCheckpoint(playerid)
- {
- if(ServicoS[playerid] != 1)
- {
- DisablePlayerCheckpoint(playerid);
- }
- else
- {
- new monew = random(500);
- new local = random(sizeof(RotasSedex));
- SetPlayerCheckpoint(playerid, RotasSedex[local][0], RotasSedex[local][1], RotasSedex[local][2], RotasSedex[local][3]);
- new string[246];
- format(string, sizeof(string), "<!> Entrega Sedex Voce recebeu {00FF00}R$%d", monew);
- SCM(playerid, -1, string);
- Player[playerid][pDinheiro] +=monew;
- pCarga[playerid] -= 1;
- }
- return 1;
- }
- //======= CMD
- CMD:carregar(playerid)
- {
- if(Player[playerid][pEmprego] != 1) return SCM(playerid, Vermelho, "<!> Voce nao e entregador");
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, 211.1068,24.8129,2.3410)) return SCM(playerid, Vermelho, "<!> Voce nao esta no local para carregar");
- if(pCarga[playerid] >= 1) return SCM(playerid, Vermelho, "<!> Veiculo ja esta carregado");
- {
- ServicoS[playerid] = 1;
- pCarga[playerid] = 3;
- new local = random(sizeof(RotasSedex));
- SetPlayerCheckpoint(playerid, RotasSedex[local][0], RotasSedex[local][1], RotasSedex[local][2], RotasSedex[local][3]);
- SCM(playerid, -1, "<!> Nao podera usar Gps em servico");
- SCM(playerid, Amarelo, "<!> Veiculo carregado");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement