Quote:
Originally Posted by V№ceC№ty
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
see how i changed if to else if after the 1st one, should fix it i cant see anything else wrong. add the rest in aswell.
|
No the SendClientMessage still doesn't show up when I enter the icons