can someone help me - 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: can someone help me (
/showthread.php?tid=478154)
can someone help me -
Salman1200 - 28.11.2013
i want change cmd to vips so how can i change it
Re: can someone help me -
Kyance - 28.11.2013
Create a new enum called "pVip" or something
Then create an admin command that will set the targets Vip to 1 ( PlayerInfo[playerid][pVip] = viplevel )
And then at the command
pawn Код:
if(PlayerInfo[playerid][pVip] = 0) return SendClientMessage(playerid, COLOR_RED, "[VIP] - Only vips can use this command!");
Or something like that xd
Re: can someone help me -
xVIP3Rx - 28.11.2013
You want to change cmd to vips ?
I don't understand, I think you want to make a command for only premium players ? if yes then You should have a variable with the player Vip level and check if it's more then 0(for example)
pawn Код:
new VIP[MAX_PLAYERS];
CMD:test(playerid, params[]) //Using ZCmd
{
if(VIP[playerid] == 0)
{
// If he isn't premium..
return SendClientMessage(playerid, -1 "You're not premium");
}
// If he is premium
return 1;
}
Or with an enum like what Kyance said
Re: can someone help me -
Salman1200 - 28.11.2013
can u learn me from teamviewer i need learn it
Re: can someone help me -
xVIP3Rx - 28.11.2013
There are alot of tutorials to learn from, just
search
Re: can someone help me -
Salman1200 - 28.11.2013
i can,t find bro if u can help me plz
Re: can someone help me -
Stinged - 28.11.2013
Learn how to create a saving system.
https://sampforum.blast.hk/showthread.php?tid=352703
Then do what Kyance told you to do.