And Delete This Too
Soory But u cant use !pdistance and !pheal Ask Pro Scripters to Help you in that
Code Select
}
else if (strcmp(cmd, "!pheal", true) == 0) {
new Float:Health; GetPlayerHealth(playerid,Health); tmp = strtok(cmdtext, idx);
if (Health >= 100) SendClientMessage(playerid,COLOR_GREEN,"Error: You are healthy!");
else if(IsPropertyOwnedShared(strval(tmp),gPlayers[playerid]) == -1) SendClientMessage(playerid,COLOR_GREEN, "Error: You do not own that property!");
else {
new as[4][128];
split(dini_Get("/Pickups/Pickups.ini",tmp), as, ' ');
if(GetDistance(playerid,floatstr(as[1]),floatstr(as[2]),floatstr(as[3])) >= 15) {
SendClientMessage(playerid,COLOR_GREEN,"You have to be closer to your property!");
return 1;
}
new calc = (100 - 1);
format(szMsg,sizeof(szMsg),"%d of your health has been restored.",calc);
SendClientMessage(playerid,COLOR_GREEN,szMsg);
SetPlayerHealth(playerid,100.0);
}
return 1;
}
Soory But u cant use !pdistance and !pheal Ask Pro Scripters to Help you in that