Quote:
Originally Posted by park4bmx
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 ); }
|
no that doesnt work.
I need a code that randomly gets a player id at that team, and the player needs to be alive