[Pregunta] Como hago esto...
#9

Quote:
Originally Posted by JuliPera
Посмотреть сообщение
Lo pude hacer.
En OnPlayerKeyStateChange puse:
pawn Код:
if(oldkeys & KEY_FIRE)
    {
        new Slot, Arma, Municion, String[128], ArmaNombre[24];
        Slot = GetWeaponSlot(GetPlayerWeapon(playerid));
        GetPlayerWeaponData(playerid, Slot, Arma, Municion);
        GetWeaponName(Arma, ArmaNombre, sizeof(ArmaNombre));
        format(String, sizeof(String), "%s ha disparado con su %s, ahora tiene %d balas.", NombreJugador(playerid), ArmaNombre, Municion);
        SendClientMessageToAll(0xFFFFFFFF, String);
        return 1;
    }
Edita en vez de hacer doble post y
Entonces cuando termina de disparar dice el nombre, con que arma disparo y cuantas balas le quedan.
Pueden cerrar.
seguro que te funciona? ahi no comprueba si esta apie o a vehiculo asi que intenta ahcerlo estando en 1 carro y veras.
Reply


Messages In This Thread
[Pregunta] Como hago esto... - by JuliPera - 13.04.2012, 14:55
Respuesta: [Pregunta] Como hago esto... - by TiNcH010 - 13.04.2012, 17:00
Re: Respuesta: [Pregunta] Como hago esto... - by JuliPera - 13.04.2012, 17:43
Respuesta: [Pregunta] Como hago esto... - by TiNcH010 - 13.04.2012, 17:53
Re: [Pregunta] Como hago esto... - by JuliPera - 13.04.2012, 18:18
Respuesta: [Pregunta] Como hago esto... - by nagato.samp - 13.04.2012, 18:29
Re: Respuesta: [Pregunta] Como hago esto... - by JuliPera - 13.04.2012, 19:33
Re: [Pregunta] Como hago esto... - by JuliPera - 13.04.2012, 19:51
Respuesta: Re: [Pregunta] Como hago esto... - by nagato.samp - 13.04.2012, 20:50
Re: Respuesta: Re: [Pregunta] Como hago esto... - by JuliPera - 14.04.2012, 20:32
Re: [Pregunta] Como hago esto... - by Glimma - 05.11.2012, 01:18
Respuesta: [Pregunta] Como hago esto... - by TheChaoz - 05.11.2012, 18:36

Forum Jump:


Users browsing this thread: 2 Guest(s)