View Single Post
Old 11/03/2011, 11:22 AM   #86
Riddick94
Banned
 
Join Date: Mar 2010
Location: Poland
Posts: 1,767
Reputation: 223
Default Re: Y_Ini - Let's do it!

At the momment i'm using GivePlayerWeapon.

GivePlayerWeaponEx it's my Anty Weapon Cheat. GivePlayerWeapon not working correctly:

pawn Code:
foreach2(w, MAX_WEAPON_SLOTS)
    {
        new string[32];
        format(string, sizeof(string), "Weapon_%d", w);
        if(!strcmp(string, name, true))PlayerInfo[playerid][Weapons][w] = strval(value);

        format(string, sizeof(string), "Ammo_%d", w);
        if(!strcmp(string, name, true))PlayerInfo[playerid][Ammo][w] = strval(value);
       
        GivePlayerWeapon(playerid, PlayerInfo[playerid][Weapons][w], PlayerInfo[playerid][Ammo][w]);
    }

And i won't to give weapons after spawn but when player is Logged.
Riddick94 is offline