09.06.2009, 12:38
Hey i wanted to make a script that when you go in Ammu Nation and type /heal it would actually heal you. Here's my script so far:
I think its something wrong with that GetPlayerPos and stuff oh and that location is Ammu Nation in LS.
Help would be appreciated.
Regards xXiamCr4zyXx
From Slovenia
Код:
#include <a_samp> public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(text, "/heal", true)==0) { SetPlayerHealth(playerid, 100.0); } if isPlayerInArea () new Float:x, Float:y, Float:z; GetPlayerPos(playerid,254,287.5830,-39.4381,1001.5156,302.302.2461,0,0,0,0,0,0); { SendClientMessage(playerid, COLOR_RED, "You have been healed"); { else } SendClientMessage(playerid, COLOR_RED, "Unknown command"); { return 1; } }
Help would be appreciated.
Regards xXiamCr4zyXx
From Slovenia