With one command two or more people teleport
#4

Quote:
Originally Posted by xkirill
Посмотреть сообщение
lol try this :
pawn Код:
#include <a_samp>
#include <zcmd>

CMD:teleportjail(playerid, params[])
{
    new
        officer,
        criminal;
    if(!sscanf(params,"rr", officer, criminal)) {
        if(!IsPlayerConnected(officer)) {
            SendClientMessage(playerid, COLOR_LIGHTRED,"This officer is not connected!");
        }
        else {
            if(!IsPlayerConnected(criminal)) {
                SendClientMessage(playerid, COLOR_LIGHTRED,"This officer is not connected!");
            }
            else {
                SetPlayerPos(criminal, X, Y, Z);  // change the X,Y,Z to the pos you want the criminal to be teleported
                SetPlayerPos(officer, X, Y, Z);   // change the X,Y,Z to the pos you want the officer to be teleported
            }
        }
        return 1;
    }
I actually want like i insert id's like /teleportjail 1 2 ( "1" is my id and "2" is criminal/other person id) because server dosen't recognize somehow criminal and officer
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)