Need help newb me - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help newb me (
/showthread.php?tid=155900)
Need help newb me -
Asylum - 20.06.2010
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
Re: Need help newb me -
Luka P. - 20.06.2010
pawn Код:
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;
}
It may lag your server because of the loop every second, and it will send message every one second if someone is in range of 5 meters to you.
Do the rest by yourself, this is just an idea.
Re: Need help newb me -
Asylum - 20.06.2010
Quote:
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.
|
I never asked for your opinion anyway.
Re: Need help newb me -
Antonio [G-RP] - 20.06.2010
Quote:
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.
|
Asshole.
Re: Need help newb me -
Flashy - 20.06.2010
Quote:
Originally Posted by ♂ Antonio [G-RP
]
Quote:
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.
|
Asshole.
|
AND:
Quote:
Originally Posted by Asylum
Quote:
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.
|
I never asked for your opinion anyway.
|
WTF guys? He is totally right. But nubs donґt read the rules and post script request and make new topics without asking. I would sa the same.
Learn to script before asking for scripts.
In common, asking for scripts should be done at SCRIPT REQUEST THREAD. But unfortunatly nubs donґt read the rules and give a fuck if they post it on the right topic or make a topic.
For you guys: GTFO with your insultings and respect the rules. Topic creator: Next time ask here:
http://forum.sa-mp.com/index.php?topic=144062.0 or learn to script is very easy.
Re: Need help newb me -
Asylum - 20.06.2010
Well atleast someone doesn't go bitching at a nub who can't script unlike the other guy