Jump to content

Recommended Posts

Posted

YCMD:fish(playerid, params[], help) {
    if(PlayerInfo[playerid][pJob] != 7)
    return SCM(playerid, COLOR_GREY, "Nu esti pescar!");
    if(!PlayerToPoint(40, playerid, 2118.5134,-93.6177,2.0291,129.1079)) {
        if(targetfind[playerid] != -1)
            return ShowPlayerDialogEx(playerid, DIALOG_CHECKPOINT, DIALOG_STYLE_MSGBOX, "Checkpoint", "Ai deja un checkpoint activ.\nDoresti sa-l anulezi? Daca da, apasa pe 'Ok'.", "Ok", "Exit");
        CP[playerid] = 53;
        SCM(playerid, COLOR_GREY, "Nu esti in zona in care poti pescui.");
        return SetPlayerCheckpoint(playerid,2118.5134,-93.6177,2.0291,129.1079, 3);
}

 

 

si la asta la fel ce pot face

YCMD:gotofish(playerid, params[], help) {
     if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_WHITE, AdminOnly);
      else SetPlayerPosEx(false, playerid, 2118.5134,-93.6177,2.0291,129.1079);
      SetPlayerInterior(playerid,0);
      SetPlayerVirtualWorld(playerid,0);
      return true;
    }

Posted

CMD:gotofish(playerid, params[]) {
    if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_WHITE, AdminOnly);

      SetPlayerPosEx(playerid, 2118.5134,-93.6177,2.0291);  
      SetPlayerInterior(playerid,0);
      SetPlayerVirtualWorld(playerid,0);
      return true;
}

 

 

Posted

Ai pus la PlayerToPoint, la SetPlayerCheckpoint si la SetPlayerPosEx coordonatele cu tot cu Rotatie, trebuie puse doar primele 3 coordonate, x, y si z.

Adica asa ar trebui sa arate:
 

YCMD:fish(playerid, params[], help) {
    if(PlayerInfo[playerid][pJob] != 7)
    return SCM(playerid, COLOR_GREY, "Nu esti pescar!");
    if(!PlayerToPoint(40, playerid, 2118.5134, -93.6177, 2.0291)) {
        if(targetfind[playerid] != -1)
            return ShowPlayerDialogEx(playerid, DIALOG_CHECKPOINT, DIALOG_STYLE_MSGBOX, "Checkpoint", "Ai deja un checkpoint activ.\nDoresti sa-l anulezi? Daca da, apasa pe 'Ok'.", "Ok", "Exit");
        CP[playerid] = 53;
        SCM(playerid, COLOR_GREY, "Nu esti in zona in care poti pescui.");
        return SetPlayerCheckpoint(playerid, 2118.5134, -93.6177, 2.0291, 3);
}


YCMD:gotofish(playerid, params[], help) {
     if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_WHITE, AdminOnly);
      else SetPlayerPosEx(false, playerid, 2118.5134, -93.6177, 2.0291);
      SetPlayerInterior(playerid,0);
      SetPlayerVirtualWorld(playerid,0);
      return true;
    }

Am lasat acel "false" la SetPlayerPosEx deoarece presupun ca asa ai tu facuta acea functie customizata.

Discord:
! Akan !#6675

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.