09.03.2011, 05:25
He i want help about i want a script in which anyplayer id recieves any weapons freeaway.
stock GiveLoopWeapon(weapon_id)
{
for (new p = 0; p < MAX_PLAYERS; p++) { GivePlayerWeapon(p, weapon_id, 9999); }
}
GiveLoopWeapon(22); // Gives Desert Eagle to all.
stock GiveLoopWeapon(weapon_id)
{
for (new p = 0; p < MAX_PLAYERS; p++) { GivePlayerWeapon(p, weapon_id, 9999); }
}
CMD:sawntoall( playerid, params[ ] )
{
GiveLoopWeapon( 26 );
return 1;
}
stock GiveLoopWeapon(weapon_id)
{
for (new p = 0; p < MAX_PLAYERS; p++) if(IsPlayerConnected(p)) { GivePlayerWeapon(p, weapon_id, 9999); }
}