My VIP filterscript 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: My VIP filterscript help? (
/showthread.php?tid=260000)
My VIP filterscript help? -
lawonama - 06.06.2011
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", 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 1;
}
Can anyone help making the code please ? :P Thanks already
AW: My VIP filterscript help? -
Julian12345 - 07.06.2011
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;
}