My VIP filterscript help?
#1

Hi, all.
I recently downloaded a filterscript and tried to when you are a VIP and write /nameoff your name tag will dissappear.

This is the whole code of the VIP system:
http://pastebin.com/5Cii9AWN

//================MYCODE======================//
This is the code I'm using for the script. (Also you can see this code at the pastebin code.
PHP код:
dcmd_vr(playerid,params[])
 {
 if(
Pinfo[giveplayerid][Vip_Level] == 1)
 {
 if (
strcmp("/nameoff"cmdtexttrue) == 0)
 {
    for(new 
0MAX_PLAYERSi++) ShowPlayerNameTagForPlayer(playeridifalse);
    
GameTextForPlayer(playerid"~W~Nametags ~R~off"50005);
    return 
1;
 }
 }
 else
 {
 
SendClientMessage(playerid,COLOR_RED,"You need to be a VIP to use this command!!");
 }
 return 
1;
 } 
Can anyone help making the code please ? :P Thanks already
Reply
#2

Hey, try that

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(setvip,6,cmdtext);
    dcmd(viplevel,8,cmdtext);

    if(Pinfo[playerid][Vip_Level] == 1)
    {
        if (strcmp("/nameoff", cmdtext, true) == 0)
        {
            for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, false);
            GameTextForPlayer(playerid, "~W~Nametags ~R~off", 5000, 5);
            return 1;
        }
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED,"You need to be a VIP to use this command!!");
    }
    return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)