Such us , i type /heal , but i am not in hospital. So " u are not in the hosopital '
how can i Identify the location , setplayerpos or ?
So , What how i can write in the pawno .. I don' t know ..
and how can I creat a icon On the radar,,, Thanks .
xD you are Using GUPS huh
So For Heal CMD Find this
else if (strcmp(cmd, "!heal", true) == 0) {
new Float:Health; GetPlayerHealth(playerid,Health);
if(strcmp(GetPlayerLocation(playerid), "Hospital-Vice-Point-Vice-City-Beach", true) == 1)
SendClientMessage(playerid,COLOR_GREEN, "You have to be at the hospital.");
else if (Health >= 100) SendClientMessage(playerid,COLOR_GREEN,"Error: You are healthy!");
else {
SetPlayerHealth(playerid,100.0);
SendClientMessage(playerid,COLOR_GREEN,"You have been healed.");
}
return 1;
}
Change it TO this :
else if (strcmp(cmd, "!heal", true) == 0) {
new Float:Health; GetPlayerHealth(playerid,Health);
if (Health >= 100) SendClientMessage(playerid,COLOR_GREEN,"Error: You are healthy!");
else {
SetPlayerHealth(playerid,100.0);
SendClientMessage(playerid,COLOR_GREEN,"You have been healed.");
}
return 1;
}
And If you want To Create icon i have Solution But In pawn SendRconCommand is Bugged xD
so Login as admin type in game
your rcon password from server.cfg
/admin rcon_password
then type
/s iconbla
it will give u Coords then Hurry Don't miss the Coordsor anyone will with Talk will remove it
your coords will be Look like this
Class :0 0 0 0 Pos:x Pos:y Pox:z Angle 0 0 0 0
pos are Numbers of map where u are standing
then type
/set 16 Icon-ID Pos:x Pos:y Pos:z
for Easy i give u example
i type
/s posicon
then it comes
Class : 0 0 0 0 -396.45454 324.68541 -435.4442 29.54544 0 0 0 0
and next i type
without angle and Zero's
with Icon ID
/set 16 23 -396.45454 324.68541 -435.4442
EDIT: the icon comes for Player who are in game not for then who after icon appear Connect server you will have to type it again when some one connect's