SA-MP Forums Archive
obtener equipo?? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: obtener equipo?? (/showthread.php?tid=377303)



obtener equipo?? - chucho - 13.09.2012

Hola tengo una duda alguien sabe algun codigo para obtener al equipo que pertence es decir:
jugador x mato a y

y que aparesca

teamZ mato a teamY


Respuesta: obtener equipo?? - M1tux3r - 13.09.2012

Usa " GetPlayerTeam(playerid); ", posible ejemplo:

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid != INVALID_PLAYER_ID)
    {
        new string[40];
        format(string, 40, "El equipo %s, matу al equipo %s.", ((!GetPlayerTeam(killerid)) ? ("JUAN") : ("JESUS")), ((!GetPlayerTeam(playerid)) ? ("JUAN") : ("JESUS")));
        SendClientMessageToAll(-1, string);
    }
}



Respuesta: obtener equipo?? - chucho - 13.09.2012

gracias