agregar texto fs y sacararmas
#9

Puede que no te aparezca porque el jugador no tiene ningъn arma encima.
Probб asн:

pawn Код:
#include <a_samp>

public OnFilterScriptInit()
{
    print(" Anti-Driveby succesfuly loaded.");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

new PlayerWeapon[MAX_PLAYERS][12];
new PlayerWeaponAmmo[MAX_PLAYERS][12];

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if (newstate==PLAYER_STATE_DRIVER){
        for(new i=0;i<12;i++){
            GetPlayerWeaponData(playerid, i, PlayerWeapon[playerid][i], PlayerWeaponAmmo[playerid][i]);
        }
      GameTextForPlayer(playerid, "~w~Anti DB ON", 1, 2000);
      ResetPlayerWeapons(playerid);
    }
    if (newstate==PLAYER_STATE_ONFOOT && oldstate==PLAYER_STATE_DRIVER){
        for(new i=0;i<12;i++){
          GivePlayerWeapon(playerid, PlayerWeapon[playerid][i], PlayerWeaponAmmo[playerid][i]);
        }
      GameTextForPlayer(playerid, "~w~Anti DB OF", 1, 2000);
    }
    return 1;
}
Reply


Messages In This Thread
agregar texto fs y sacararmas - by gian_pino - 23.02.2010, 14:08
Re: agregar texto fs y sacararmas - by differo - 23.02.2010, 14:41
Re: agregar texto fs y sacararmas - by gian_pino - 23.02.2010, 15:12
Re: agregar texto fs y sacararmas - by TheChaoz - 23.02.2010, 15:21
Re: agregar texto fs y sacararmas - by gian_pino - 23.02.2010, 15:26
Re: agregar texto fs y sacararmas - by gian_pino - 23.02.2010, 15:27
Re: agregar texto fs y sacararmas - by gian_pino - 23.02.2010, 15:30
Re: agregar texto fs y sacararmas - by gian_pino - 23.02.2010, 15:31
Re: agregar texto fs y sacararmas - by Zamaroht - 23.02.2010, 15:45
Re: agregar texto fs y sacararmas - by gian_pino - 23.02.2010, 15:57

Forum Jump:


Users browsing this thread: 1 Guest(s)