26.09.2009, 08:20
pawn Код:
public Health()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerToPoint(3.0,i,2142.3875,-1802.8997,16.1475))// Health 1
{
SetPlayerHealth(i, 100);
SendClientMessage(i, COLOR_GREEN, "Health has been restored ! " );
return 1;
}
else if(PlayerToPoint(3.0,i,2042.1116,-1708.4257,13.5547))// Health 2
{
SetPlayerHealth(i, 100);
SendClientMessage(i, COLOR_GREEN, "Health has been restored ! " );
return 1;
}
else if(PlayerToPoint(3.0,i,2177.5632,-1585.4856,14.3329))// Health 3
{
SetPlayerHealth(i, 100);
SendClientMessage(i, COLOR_GREEN, "Health has been restored ! " );
return 1;
}
//ect, ect