Originally Posted by Carlton
pawn Код:
RemovePlayerWeapon ( playerid, weaponid ) { new wd[2][13], cloop; for (cloop = 0; cloop < 13; cloop++ ) { GetPlayerWeaponData ( playerid, cloop, wd[0][cloop], wd[1][cloop] ); } ResetPlayerWeapons ( playerid ); for(cloop = 0; cloop < 13; cloop ++ ) { if(wd[0][cloop] == weaponid) continue; GivePlayerWeapon ( playerid, wd[0][cloop], wd[1][cloop]); } }
pawn Код:
stock ChangeTextDrawColorForAll(Text:txtid, color) { TextDrawHideForAll(txtid); TextDrawColor(txtid,color); TextDrawShowForAll(txtid); }
stock ChangeTextDrawColorForPlayer(playerid, Text:txtid, color) { TextDrawHideForPlayer(playerid, txtid); TextDrawColor(txtid,color); TextDrawShowForPlayer(playerid, txtid); }
|