Problem with Loading Weapon Y_ini in Gamemode
#4

Quote:
Originally Posted by Ada32
Посмотреть сообщение
sure you do. check OnPlayerSpawn.
Yea Right, @DheWardhana; This is your Problem Dude :-
pawn Код:
public OnPlayerSpawn(playerid)
{
    GivePlayerWeapon(playerid, WeaponInfo[playerid][Weapon1], WeaponInfo[playerid][Ammo1]);
    GivePlayerWeapon(playerid, WeaponInfo[playerid][Weapon2], WeaponInfo[playerid][Ammo2]);
    GivePlayerWeapon(playerid, WeaponInfo[playerid][Weapon3], WeaponInfo[playerid][Ammo3]);
    GivePlayerWeapon(playerid, WeaponInfo[playerid][Weapon4], WeaponInfo[playerid][Ammo4]);
    GivePlayerWeapon(playerid, WeaponInfo[playerid][Weapon5], WeaponInfo[playerid][Ammo5]);
    GivePlayerWeapon(playerid, WeaponInfo[playerid][Weapon6], WeaponInfo[playerid][Ammo6]);
    GivePlayerWeapon(playerid, WeaponInfo[playerid][Weapon7], WeaponInfo[playerid][Ammo7]);
    GivePlayerWeapon(playerid, WeaponInfo[playerid][Weapon8], WeaponInfo[playerid][Ammo8]);
    GivePlayerWeapon(playerid, WeaponInfo[playerid][Weapon9], WeaponInfo[playerid][Ammo9]);
    GivePlayerWeapon(playerid, WeaponInfo[playerid][Weapon10], WeaponInfo[playerid][Ammo10]);
    GivePlayerWeapon(playerid, WeaponInfo[playerid][Weapon11], WeaponInfo[playerid][Ammo11]);
    GivePlayerWeapon(playerid, WeaponInfo[playerid][Weapon12], WeaponInfo[playerid][Ammo12]);
    new PlayerName[MAX_PLAYER_NAME],
    string[128];
    GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
    format(string, sizeof(string), "%s Telah Respawn.", PlayerName);
    SendClientMessageToAll(COLOR_RED, string);
    TextDrawShowForPlayer(playerid, ShadowsRandom);
    return 1;
}
EDIT :-
Quote:
Originally Posted by DheWardhana
Посмотреть сообщение
but thats it for load weapon from users.ini? i loggin with different id they still get weapon.
That's the only GivePlayerWeapon we've seen and there is nothing more than this.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)