[FilterScript] [FS] Simple /getallplayers
#12

I fixed it for you, and deleted a lot of crap from it >.>

pawn Code:
#include <a_samp>
#define FILTERSCRIPT
#if defined FILTERSCRIPT

    new Float:x, Float:y, Float:z;

public OnFilterScriptInit()
{
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else
#endif

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/getallplayers", true) == 0)
        {
    for(new i=0; i<MAX_PLAYERS; i++)
            {
            GetPlayerPos(playerid,x,y,z);
            if(IsPlayerConnected(i))
                {
                SetPlayerPos(i,x,y,z+10);
                }
            }
        return 1;
        }
    return 0;
}
It compiled, but I haven\'t tested it....
Reply


Messages In This Thread
[FS] Simple /getallplayers - by popben - 04.03.2009, 09:03
Re: [FS] Simple /getallplayers - by Dujma - 04.03.2009, 09:08
Re: [FS] Simple /getallplayers - by Sandra18[NL] - 04.03.2009, 11:56
Re: [FS] Simple /getallplayers - by IVuljak - 04.03.2009, 12:05
Re: [FS] Simple /getallplayers - by popben - 04.03.2009, 12:10
Re: [FS] Simple /getallplayers - by Sandra18[NL] - 04.03.2009, 12:13
Re: [FS] Simple /getallplayers - by popben - 04.03.2009, 12:16
Re: [FS] Simple /getallplayers - by Sandra18[NL] - 04.03.2009, 12:19
Re: [FS] Simple /getallplayers - by Rks25 - 04.03.2009, 13:43
Re: [FS] Simple /getallplayers - by MenaceX^ - 04.03.2009, 13:58
Re: [FS] Simple /getallplayers - by x-cutter - 04.03.2009, 14:25
Re: [FS] Simple /getallplayers - by Weirdosport - 04.03.2009, 16:07
Re: [FS] Simple /getallplayers - by NigNog1 - 04.03.2009, 16:11
Re: [FS] Simple /getallplayers - by Weirdosport - 04.03.2009, 18:16
Re: [FS] Simple /getallplayers - by Rks25 - 04.03.2009, 19:10
Re: [FS] Simple /getallplayers - by Nimphious - 04.03.2009, 19:23
Re: [FS] Simple /getallplayers - by Magician - 04.03.2009, 19:36
Re: [FS] Simple /getallplayers - by Rks25 - 04.03.2009, 20:32
Re: [FS] Simple /getallplayers - by Weirdosport - 04.03.2009, 22:26

Forum Jump:


Users browsing this thread: 1 Guest(s)