SA-MP Forums Archive
help - 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)
+--- Thread: help (/showthread.php?tid=435250)



help - Xport6050 - 06.05.2013

any one can tell how can i make afk system for vip only that vip can use pls tell


Re: help - Xport6050 - 06.05.2013

pls pls pls pls help me


Re: help - Neil. - 06.05.2013

Quote:
Originally Posted by Xport6050
Посмотреть сообщение
any one can tell how can i make afk system for vip only that vip can use pls tell
Sure.

pawn Код:
new afk[MAX_PLAYERS]; //Top



CMD:afk(playerid, params[])
{
 if(YourVIPVariablehere > 0)
 {
    if(afk[playerid] == 0)
    {
        SendClientMessage(playerid, -1, "AFK");
        afk[playerid] = 1;
    }
     else
    {
        SendClientMessage(playerid, -1, "You are now back");
        afk[playerid] = 0;
     }
 }
 else return 0;
 return 1;
}
Of course, you're gonna have to change some of the variables yourself.
P.S: Don't double post within 2 minutes


Re: help - Xport6050 - 06.05.2013

Quote:
Originally Posted by Neil.
Посмотреть сообщение
Sure.

pawn Код:
new afk[MAX_PLAYERS]; //Top



CMD:afk(playerid, params[])
{
 if(YourVIPVariablehere > 0)
 {
    if(afk[playerid] == 0)
    {
        SendClientMessage(playerid, -1, "AFK");
        afk[playerid] = 1;
    }
     else
    {
        SendClientMessage(playerid, -1, "You are now back");
        afk[playerid] = 0;
     }
 }
 else return 0;
 return 1;
}
Of course, you're gonna have to change some of the variables yourself.
P.S: Don't double post within 2 minutes
but back cmd also need na for vip