/sendto
#1

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
Reply
#2

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
Reply
#3

Ty vm!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)