07.09.2012, 16:54
Yes i have :
pawn Код:
Public: SendVipMessage( color, const string[ ] )
{
foreach(Player, i )
if ( P_DATA[ i ][ Vip ] >= 1 )
SendClientMessage( i, color, string );
return 1;
}
Public: ReturnPosition( playerid )
{
SetPlayerPos( playerid, Position[ playerid ][ 0 ], Position[ playerid ][ 1 ], Position[ playerid ][ 2 ] );
SetPlayerFacingAngle( playerid, Position[ playerid ][ 3 ] );
}
Public: GodUpdate( )
{
foreach(Player, i )
{
if ( P_DATA[ i ][ God ] == 1 )
SetPlayerHealth( i, 100000 );
if ( P_DATA[ i ][ CarGod ] == 1 && IsPlayerInAnyVehicle( i ) )
SetVehicleHealth( GetPlayerVehicleID( i ), 10000 );
}
}