[Problema]/IR (sscanf)
#4

pawn Код:
YCMD:ir(playerid, params[], help)
{
    if(sscanf(params,"u",params[0]))return SendClientMessage(playerid,-1,"[ERROR]: /ir [playerid]");
    if(!IsPlayerConnected(params[0]))return SendClientMessage(playerid,-1,"[ERROR]: Jugador no conectado!");
    if(Informacion[targetid][EstaBloqueado] == 1) return SendClientMessage(playerid,-1,"El jugador desactivу el comando /IR.");
    if(params[0] == playerid) return SendClientMessage(playerid, -1, "No puedes teletransportarte a tн mismo.");
    new Float:Pos[3];
    GetPlayerPos(params[0],Pos[0],Pos[1],Pos[2]);
    SetPlayerPosEx(playerid,Pos[0],Pos[1],Pos[2]);
    new interior = GetPlayerInterior(params[0]);
    SetPlayerInterior(playerid,interior);
    return 1;
}
Reply


Messages In This Thread
[Problema]/IR (sscanf) - by Matyaas - 12.05.2013, 03:15
Respuesta: [Problema]/IR (sscanf) - by DesingMyCry - 12.05.2013, 03:23
Respuesta: [Problema]/IR (sscanf) - by Matyaas - 12.05.2013, 03:58
Respuesta: [Problema]/IR (sscanf) - by Adoniiz - 12.05.2013, 05:06
Respuesta: [Problema]/IR (sscanf) - by Matyaas - 12.05.2013, 05:21
Respuesta: [Problema]/IR (sscanf) - by DesingMyCry - 12.05.2013, 10:47
Respuesta: [Problema]/IR (sscanf) - by Matyaas - 12.05.2013, 20:24
Respuesta: [Problema]/IR (sscanf) - by Parka - 12.05.2013, 20:41
Respuesta: [Problema]/IR (sscanf) - by DesingMyCry - 13.05.2013, 00:17

Forum Jump:


Users browsing this thread: 1 Guest(s)