18.04.2013, 00:04
Probably this ?
Edit: i got you!
I think you meant that who is near that van can type /healme?
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 2.0, 740.5068,-1332.7472,14.1702))
I think you meant that who is near that van can type /healme?
pawn Код:
CMD:healme(playerid, params[])
{
if(!IsPlayerInRangeOfPoint(playerid, 2.0, 740.5068,-1332.7472,14.1702)) return SendClientMessage(playerid, -1, "Your message");
else
{
SetPlayerHealth(playerid, 100);
}
return 1;
}
pawn Код:
if(!strcmp(cmdtext, "/healme", true))
{
if(!IsPlayerInRangeOfPoint(playerid, 2.0, 740.5068,-1332.7472,14.1702)) return SendClientMessage(playerid, -1, "Your message");
else
{
SetPlayerHealth(playerid, 100);
}
return 1;
}

