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