Need help newb me
#1

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
Reply
#2

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.
Reply
#3

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.
Reply
#4

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.
Reply
#5

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.

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
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.
Reply
#6

Well atleast someone doesn't go bitching at a nub who can't script unlike the other guy
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)