15.10.2011, 07:29
pawn Код:
public OnPlayerSpawn(playerid)
{
if( PVar[ playerid ][ pLastX ] == 0.0 && PVar[ playerid ][ pLastY ] == 0.0 )
{
new
RPos = random( sizeof ( RandSpawns ) );
SetPlayerPos( playerid, RandSpawns[ RPos ][ 0 ], RandSpawns[ RPos ][ 1 ], RandSpawns[ RPos ][ 2 ] );
}
else SetPlayerPos( playerid, PVar[ playerid ][ pLastX ], PVar[ playerid ][ pLastY ], PVar[ playerid ][ pLastZ ] );
GivePlayerMoney( playerid, PVar[ playerid ][ pMoney ] ); // <----
return 1;
}