20.06.2010, 05:20
hi i need script wer you get alerted when some1 comes near your position..... it will say in screen "asylum is neaaaring yur postiion". tank you
forward RunCheck(playerid);
new CheckTimer[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
CheckTimer[playerid] = SetTimerEx("RunCheck", 1000, 1, "i", playerid);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
KillTimer(CheckTimer[playerid]);
return 1;
}
public RunCheck(playerid)
{
for(new i=0; i < MAX_PLAYERS; i++)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(i, X, Y, Z);
if(IsPlayerInRangeOfPoint(playerid, 5.0, X, Y, Z)) SendClientMessage(playerid, 0xF00000AA, "asylum is neaaaring yur postiion");
}
return 1;
}
Originally Posted by craponnaruto
God...fucking look at the wiki and learn to f**king script and try for yourself, then if you can't do it ask.
|
Originally Posted by craponnaruto
God...fucking look at the wiki and learn to f**king script and try for yourself, then if you can't do it ask.
|
Originally Posted by ♂ Antonio [G-RP
]
Quote:
|
Originally Posted by Asylum
Quote:
|
c) Help yourself -Follow the READ ME FIRST! thread -Use the search option -Read the wiki Never scripted, or really suck at it? http://forum.sa-mp.com/index.php?topic=2750.0 Useful scripts to help develop your own scripts http://forum.sa-mp.com/index.php?topic=29187.0 General reference thread. This is a MUST browse! http://forum.sa-mp.com/index.php?topic=139.0 |