18.07.2011, 14:54
then do something like this
pawn Code:
new Float: x[MAX_PLAYERS], Float: y[MAX_PLAYERS], Float: z[MAX_PLAYERS], Float: a[MAX_PLAYERS];
//so it would be for a player each
//then
if(TEAM_A){//blablabla
GetPlayerPos( playerid, x[playerid], y[playerid], z[playerid]);
GetPlayerFacingAngle( playerid, a[playerid]);
a[playerid] += random( 360 );
x[playerid] += ( random( 10 ) * floatsin( -a[playerid], degrees ) );
y[playerid] += ( random( 10 ) * floatcos( -a[playerid], degrees ) );
CreateObject( 0, x[playerid], y[playerid], z[playerid], 0.00, 0.00, 0.00 );
}