I do use orpheu however codeing with it is confusing lol..
And small typo on yours iPlayers[i] should be iPlayers[iNum]
PHP Code:
public BombCarrier()
{
new iPlayers[32], iNum;
get_players(iPlayers, iNum, "ae", "TERRORIST");
for(--iNum;iNum>=0;iNum--)
{
if( user_has_weapon(iPlayers[iNum], CSW_C4) )
{
if(iPlayers[iNum] != g_iLeaderid)
{
engclient_cmd(iPlayers[iNum], "drop", "weapon_c4");
new bomb = -1;
while( ( bomb = find_ent_by_model( bomb, "weaponbox", "models/w_backpack.mdl" ) ) )
{
remove_entity( bomb );
}
}
}
}
return 0;
}