Jump to content

[REZOLVAT] Cum pot sa ma teleportez la un checkpoint?


Edybgdq1994
 Share

Recommended Posts

49 minutes ago, nobilzeusAdv said:

Cand folosesti setplayercheckpoint salvezi coordonatele alea in niște variabile de player si la gotocp te tp la variabilele alea

nu refera la aia el, se refera cum ar fi  /.smeck, sa te teleporteze direct in ala, nu sa aiba el nevoie de coordonate

Link to comment
Share on other sites

Acum 15 minute, Reborn a spus:

nu refera la aia el, se refera cum ar fi  /.smeck, sa te teleporteze direct in ala, nu sa aiba el nevoie de coordonate

Pai si cum te poti teleporta tu la un punct fara sa stii coordonatele??

1 oră în urmă, nobilzeusAdv a spus:

Cand folosesti setplayercheckpoint salvezi coordonatele alea in niște variabile de player si la gotocp te tp la variabilele alea

Asta e solutia.

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

@Matt el se refera sa nu aiba nevoie de ele, intelegi? cum ar fi teleport cp hack, la aia se refera el, sa nu aiba el nevoie de coordonatele sa le puna sa se ... ca sa se teleporteze, intelegi?

 

gen /teleportcp <x,y,z>, nup, /teleportcp si esti teleportat la cp de la minimap

Edited by Test
Link to comment
Share on other sites

Daca te referi la /gotoxyz ai aci:

YCMD:gotoxyz(playerid, params[], help) {
    if(PlayerInfo[playerid][pAdmin] < 5) return AdmOnly(playerid);
    
    new string[128],interior,vw;
    new Float:x, Float:y, Float:z;
    if(sscanf(params, "fffii", x,y,z,interior,vw)) return SCM(playerid,COLOR_LIGHTBLUE, "Syntax: {FFFFFF}/gotoxyz <x> <y> <z> <interior> <virtual world>");
    SetPlayerPosEx(playerid, x, y, z);
    format(string, sizeof(string), "Te-ai teleportat cu succes. (%0.1f,%0.1f,%0.1f | int: %d | vw: %d)",x,y,z,interior, vw);
    SCM(playerid,COLOR_LGREEN, string);
    SetPlayerVirtualWorld(playerid, vw);
    SetPlayerInterior(playerid,interior);
    InHQ[playerid] = -1;
    InHouse[playerid] = -1;
    InBussines[playerid] = -1;
    return 1;
}

Daca te referi la /gotocp ai aci !

YCMD:gotocp(playerid, params[], help) {
    if(PlayerInfo[playerid][pAdmin] < 5) return AdmOnly(playerid);

    new string[60];
    if(CheckpointPos[playerid][0] == 0.0) return SendClientMessage(playerid, COLOR_LOGS, "Nu ai nici-un checkpoint pe mapa");
        
    SetPlayerPosEx(playerid,CheckpointPos[playerid][0], CheckpointPos[playerid][1], CheckpointPos[playerid][2]);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerInterior(playerid, 0);
    format(string, sizeof(string), "Server: %s s-a teleportat la checkpoint.", GetName(playerid));
    if(GetPVarInt(playerid, "Cover") == 0) SendAdminMessage(COLOR_LOGS, string, 1);
    CheckpointPos[playerid][0] = 0.0;
    return 1;
}

 

Succes !

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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