SA-MP Forums Archive
/sendto - 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: /sendto (/showthread.php?tid=435473)



/sendto - Squirrel - 07.05.2013

Uhm, i've been trying to make it but without sucess. How to make so you can do like


/sendto ID to ID

Ex:

/sendto Squirrel Boss

It would send Squirrel to player Boss


Re: /sendto - arakuta - 07.05.2013

pawn Код:
CMD:sendto(playerid,params[])
{
    new id1,id2;
    if(sscanf(params,"uu",id1,id2))
        return SendClientMessage(playerid,0xCCCCCCFF,"Usage: /sendto [PLAYER][PLAYER]");
    if(!IsPlayerConnected(id1) || !IsPlayerConnected(id2))
        return SendClientMessage(playerid,0xCCCCCCFF,"Someone isn't connected.");
    new Float:x, Float:y, Float:z;
    GetPlayerPos(id2,x,y,z);
    SetPlayerInterior(id1,GetPlayerInterior(id2));
    SetPlayerPos(id1,x+1,y+1,z);
    return 1;
}
It's the easiest way :P


AW: /sendto - Squirrel - 07.05.2013

Ty vm!