14.11.2018, 21:04
Hi everyone, again me. This error seems to be very basic, but I do not understand what happens and I have the crazy head.
That's is my code:
The problem is when I try teleport with ID 0 to ID 1 I can't and I receive that SendClientMessage:
My main account and also I am trying go to is named DabvAstur
Watch the video so understand me better.
https://youtube.com/watch?v=bdTVIX3_D2M
That's is my code:
pawn Code:
CMD:ir(playerid, params[])
{
new idJugador;
new Float:xJugador, Float:yJugador, Float:zJugador;
new StringMen[64];
if(pInfo[playerid][Admin] >= 1)
{
if(IsPlayerInAnyVehicle(playerid))
{
new vehiculo = GetPlayerVehicleID(playerid);
new seat = GetPlayerVehicleSeat(playerid);
GetPlayerPos(idJugador, xJugador, yJugador, zJugador);
SetPlayerPos(playerid, xJugador, yJugador+2, zJugador);
SetVehiclePos(vehiculo, xJugador, yJugador+2, zJugador);
PutPlayerInVehicle(playerid, vehiculo, seat);
}
else
{
GetPlayerPos(idJugador, xJugador, yJugador, zJugador);
SetPlayerPos(playerid, xJugador+1, yJugador+1, zJugador);
format(StringMen, sizeof StringMen, "[IR] %s fue a %s", pInfo[playerid][Name], pInfo[idJugador][Name]);
SendClientMessage(playerid, COLOR_RED, StringMen);
}
}
else return SendClientMessage(playerid, COLOR_RED, "No eres staff o no tienes rango suficiente!");
return 1;
}
HTML Code:
[IR] DabvAsturDemo fue a DabvAsturDemo
Watch the video so understand me better.
https://youtube.com/watch?v=bdTVIX3_D2M