Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ERRO GSP ABRINDO MENU DE PROFISSÕES:
- vou postar aqui tudo que meu GM tem sobre GPS:
- new GPSPos[MAX_PLAYERS]; (LINHA 647)
- new GPS_Spawned[MAX_PLAYERS]; (linha 735)
- new Text:gps[MAX_PLAYERS];
- enum GPSInfo
- {
- zone_name[30],
- Float:zone_minx,
- Float:zone_miny,
- Float:zone_minz,
- Float:zone_maxx,
- Float:zone_maxy,
- Float:zone_maxz
- }
- new Float:Zones[][GPSInfo] = {
- { "The Big Ear",-410.00, 1403.30,-3.00, -137.90, 1681.20, 200.00},
- { "Aldea Malvada", -1372.10, 2498.50, 0.00, -1277.50, 2615.30, 200.00},
- { "Angel Pine", -2324.90, -2584.20,-6.10, -1964.20, -2212.10, 200.00},
- { "Arco del Oeste", -901.10, 2221.80, 0.00, -592.00, 2571.90, 200.00},
- { "Avispa Country Club", -2646.40, -355.40, 0.00, -2270.00, -222.50, 200.00},
- { "Avispa Country Club", -2831.80, -430.20,-6.10, -2646.40, -222.50, 200.00},
- ETX DE LUGARES (LINHA 790)
- forward GPS(); (LINHA 1176)
- SetTimer("GPS", 800, 1); (LINHA 1574)
- gMax = GetMaxPlayers();
- for(new i=0; i<gMax; i++)
- {
- gps[i] = TextDrawCreate(3.0, 420.0,Text_Under_Minimap);
- TextDrawBackgroundColor(gps[i], 255);
- TextDrawFont(gps[i],2);
- TextDrawSetOutline(gps[i], 1);
- TextDrawColor(gps[i], -1);
- } ( LINHA 1866)
- GPS_Spawned[playerid] = 0; (LINHA 2275)
- GPS_Spawned[playerid] = 1; ( LINHA 2528)
- new cmd[256];
- new idx;
- cmd = strtok(cmdtext, idx);
- new string[256];
- new specplayerid;
- if(PlayerInfo[playerid][Logged] == 0) return SendClientMessage(playerid, Vermelho, "Logue-se antes de usar um comando.");
- if(strcmp("/gps", cmdtext, true, 10) == 0)
- {
- new listitems[] = "Los Santos\n\n\n";
- ShowPlayerDialog(playerid,617,DIALOG_STYLE_LIST,"GPS:",listitems,"Local","Sair");
- return 1;
- } (LINHA 2702)
- public OnPlayerEnterCheckpoint(playerid)
- {
- new checknome = CPS_GetPlayerCheckpoint(playerid);
- if(GPSPos[playerid] == 1)
- {
- GPSPos[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- } (LINHA 12632)
- public GPS()
- {
- new string[256];
- new random1 = random(sizeof(SVNAMES));
- format(string, sizeof(string), "hostname %s", SVNAMES[random1] );
- SendRconCommand(string);
- for (new i=0;i<MAX_PLAYERS;i++){
- if(IsPlayerConnected(i)){
- //=
- new Float:prevdist = 100000.000;
- new prevcp;
- for(new cpid=1; cpid < MAX_CHECKPOINTS; cpid++){
- if(UsedCPSlot[cpid]) {
- new Float:dist;
- dist = CPSERVICE_getdist(i,Checkpoints[cpid][cpX],Checkpoints[cpid][cpY],Checkpoints[cpid][cpZ]);
- if(dist < prevdist){
- prevdist = dist;
- prevcp = cpid;
- }
- }
- }
- new cpid=prevcp;
- if(CPSERVICE_getdist(i,Checkpoints[cpid][cpX],Checkpoints[cpid][cpY],Checkpoints[cpid][cpZ]) < Checkpoints[cpid][cpsd]) {
- if(CPSERVICE_actualcp[i] != cpid){
- SetPlayerCheckpoint(i,Checkpoints[cpid][cpX],Checkpoints[cpid][cpY],Checkpoints[cpid][cpZ],Checkpoints[cpid][cpsz]);
- CPSERVICE_actualcp[i] = cpid;
- }
- } else {
- if(CPSERVICE_actualcp[i] != 0){
- CPSERVICE_actualcp[i] = 0;
- DisablePlayerCheckpoint(i);
- }
- }
- //=
- } ( LINHA 20189)
- new str[256];
- if(GPS_Spawned[i] == 1)
- {
- format(str,sizeof(str),"%s", GetPlayerArea(i));
- TextDrawSetString(gps[i], str);
- TextDrawShowForPlayer(i, gps[i]);
- }
- else
- {
- TextDrawHideForPlayer(i, gps[i]);
- } (LINHA 20192)
- public OnPlayerDeath(playerid, killerid, reason)
- GPS_Spawned[playerid] = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement