17.01.2010, 15:02
remove
if(strcmp(cmdtext, "/hp", true) == 0)
{
if(IsPlayerInArea(playerid, 70.06725, 1296.244, 81.74512, 1436.379)) return SendClientMessage(playerid, red, "You are in DM zone, you can't use this command.");
SetPlayerHealth(playerid, 100);
return 1;
}
if(strcmp(cmdtext, "/hp", true) == 0) { if(IsPlayerInArea(playerid, 70.06725, 1296.244, 81.74512, 1436.379)) return SendClientMessage(playerid, red, "You are in DM zone, you can't use this command."); else { SetPlayerHealth(playerid, 100); return 1; }
if(strcmp(cmdtext, "/hp", true) == 0)
{
if(IsPlayerInArea(playerid, 70.06725, 1296.244, 81.74512, 1436.379)) return SendClientMessage(playerid, red, "You are in DM zone, you can't use this command.");
else
{
SetPlayerHealth(playerid, 100);
}
return 1;
}
if(strcmp(cmdtext, "/hp", true) == 0) { if(IsPlayerInArea(playerid, 70.06725, 1296.244, 81.74512, 1436.379)) return SendClientMessage(playerid, red, "You are in DM zone, you can't use this command."); else { SetPlayerHealth(playerid, 100); } return 1; }
if(strcmp(cmdtext, "/hp", true) == 0) { if(!IsPlayerInArea(playerid, 70.06725, 1296.244, 81.74512, 1436.379)) return SendClientMessage(playerid, red, "You are in DM zone, you can't use this command."); else { SetPlayerHealth(playerid, 100); } return 1; }
Originally Posted by PRANK
Yes, I tried to change it, but not work.
|
if(!PlayerToPoint(20.0,playerid,70.06725, 1296.244, 81.74512, 1436.379){ return SendClientMessage(playerid, red, "You are in DM zone, you can't use this command."); }
else { SetPlayerHealth(playerid, 100); return 1; }