/goto only V.I.P can use - 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: /goto only V.I.P can use (
/showthread.php?tid=180403)
/goto only V.I.P can use -
Mr.Jvxmc - 01.10.2010
how i can make so that V.I.P players can use /goto?
Re: /goto only V.I.P can use -
Mike Garber - 01.10.2010
All depends how your VIP system is built.
Re: /goto only V.I.P can use -
Mr.Jvxmc - 01.10.2010
I use Lux Admin and V.I.P system is in GM
Re: /goto only V.I.P can use -
Mike Garber - 01.10.2010
Quote:
Originally Posted by Mr.Jvxmc
I use Lux Admin and V.I.P system is in GM
|
But how It Is built though? What value is changed when a player is made VIP?
Re: /goto only V.I.P can use -
[XST]O_x - 01.10.2010
Well, depends on your V.I.P system variables, for example
if(pInfo[playerid][IsVIP] == 1) , or
if(IsVIP[playerid] == 1) etc.
But as an example:
pawn Код:
dcmd_goto(playerid,params[])
{
if(pInfo[playerid][VIP] == 1)
{
//code
}
else return SendClientMessage(playerid,color,"You must be VIP!");
return 1;
}
if(strcmp(cmdtext,"/goto",true) == 0)
{
if(pInfo[playerid][VIP] == 1)
{
//code
}
else return SendClientMessage(playerid,color,"You must be VIP!");
return 1;
}
CMD:goto(playerid,params[])
{
if(pInfo[playerid][VIP] == 1)
{
//code
}
else return SendClientMessage(playerid,color,"You must be VIP!");
return 1;
}
//etc
Re: /goto only V.I.P can use -
Mr.Jvxmc - 01.10.2010
It's if(IsPlayerVipMember(playerid))
Re: /goto only V.I.P can use -
[XST]O_x - 01.10.2010
So simply..
pawn Код:
dcmd_goto(playerid,params[])
{
if(IsPlayerVipMember(playerid))
{
//code
}
else return SendClientMessage(playerid,color,"You must be VIP!");
return 1;
}
Re: /goto only V.I.P can use -
Mr.Jvxmc - 01.10.2010
Thanks you
Re: /goto only V.I.P can use -
Mr.Jvxmc - 01.10.2010
can i have a code plz?
Re: /goto only V.I.P can use -
[XST]O_x - 01.10.2010
pawn Код:
dcmd_goto(playerid,params[])
{
new id = strval(params);
if(IsPlayerVipMember(playerid))
{
new Float:x,Float:y,Float:z; GetPlayerPos(id,x,y,z);
SetPlayerPos(id,x+1,y+1,z);
}
else return SendClientMessage(playerid,color,"You must be VIP to use that command.");
return 1;
}
Very simple.