SA-MP Forums Archive
goto - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: goto (/showthread.php?tid=503259)



goto - UfsDev - 28.03.2014

anyone can make /pgoto [ID] player goto another player and /pgos player disable /pgos

commands:

/Pgoto [ID] Player goto another player
/Pgos player disable teleporting
/pgoson player disable teleporting

thanks who made for me +REP <3


Re: goto - Salman1700 - 28.03.2014

THIS IS Scripting help not make for free


Re: goto - UfsDev - 28.03.2014

You Just Shutup.. Kid i Dont need your Help.. And not like you stealing .pwn Code and give me and saying this is mine Fuu u kid.


Re: goto - milanosie - 28.03.2014

Код:
/Pgos player disable teleporting 
/pgoson player disable teleporting
What's that supposed to mean?

And as the person above me said, atleast try something and show us what you've made so we can correct you, instead of giving you the entire code.


Re: goto - UfsDev - 28.03.2014

#milanosie
i want Player Goto System


Re: goto - FahadKing07 - 28.03.2014

Example of teleport Command.

pawn Код:
CMD:goto(playerid,params[])
{
    if(pInfo[playerid][pLogged] == 1)
    {

        if(pInfo[playerid][pAdminLevel] >= 2)
        {
            new targetid;
            if(sscanf(params, "u", targetid)) SendClientMessage(playerid,-1,""chat" /goto [playerid]");
            if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");

            new Float:x,Float:y,Float:z,inter;
            GetPlayerPos(targetid,Float:x,Float:y,Float:z);
            inter = GetPlayerInterior(targetid);
            SetPlayerPosEx(playerid,Float:x,Float:y,Float:z,inter,0);
        }
        else {
            SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
        }
    }
    else if(pInfo[playerid][pLogged] == 0)
    {
        SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u ****"); //replace *** with any word u want xD.
        printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
        Kick(playerid);
    }
    return 1;
}



Re: goto - UfsDev - 28.03.2014

Is This System For Normal Player Or Fr Admin ? #FahadKing ?


Re: goto - FahadKing07 - 28.03.2014

For admin

Or for all players

pawn Код:
CMD:goto(playerid,params[])
{
    if(pInfo[playerid][pLogged] == 1)
    {

        if(pInfo[playerid][pAdminLevel] >= 0)
        {
            new targetid;
            if(sscanf(params, "u", targetid)) SendClientMessage(playerid,-1,""chat" /goto [playerid]");
            if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");

            new Float:x,Float:y,Float:z,inter;
            GetPlayerPos(targetid,Float:x,Float:y,Float:z);
            inter = GetPlayerInterior(targetid);
            SetPlayerPosEx(playerid,Float:x,Float:y,Float:z,inter,0);
        }
        else {
            SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
        }
    }
    else if(pInfo[playerid][pLogged] == 0)
    {
        SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u ****"); //replace *** with any word u want xD.
        printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
        Kick(playerid);
    }
    return 1;
}