[Help] /Command [ID] - 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: [Help] /Command [ID] (
/showthread.php?tid=129875)
[Help] /Command [ID] -
dclaw - 24.02.2010
Does somebody have /command [ID] For me?
with
in it.
So i know where 2 put my function
Can this be in it?
Код:
if(adminlevel[playerid] == 5
And if he isnt admin:
Код:
SendClientMessage(playerid, COLOR_RED, "You need to be admin level 5 to use this command.");
To set rank to vip:
Код:
SetPlayerRank(playerid, 1);
Re: [Help] /Command [ID] -
-Rebel Son- - 24.02.2010
if(IsPlayerAdmin(playerid))
{
//function
}
else
{
SendClientMessage(playerid,COLOR_RED,"Your not a admin!!");
}
return 1;}
There ya go.
Re: [Help] /Command [ID] -
dclaw - 24.02.2010
Quote:
Originally Posted by [N
Dakota ]
if(IsPlayerAdmin(playerid))
{
//function
}
else
{
SendClientMessage(playerid,COLOR_RED,"Your not a admin!!");
}
return 1;}
There ya go.
|
Thats isnt what i mean.
Re: [Help] /Command [ID] -
-Rebel Son- - 24.02.2010
Explain then.
Re: [Help] /Command [ID] -
[LSR]State_Trooper - 24.02.2010
Please Elabertae
Re: [Help] /Command [ID] -
dclaw - 24.02.2010
I mean a command with the above thing's.
That if you type the command: /setvip [ID] he gets vip with setplayerrank as above.
if he isnt admin, he get that message
Re: [Help] /Command [ID] -
-Rebel Son- - 24.02.2010
You would have to make that into your Admin system/ Rank system.
It would basicly be the code i posted, but with your VIP functions in it.
Re: [Help] /Command [ID] -
dclaw - 24.02.2010
Quote:
Originally Posted by [N
Dakota ]
You would have to make that into your Admin system/ Rank system.
It would basicly be the code i posted, but with your VIP functions in it.
|
With the code from u, cant i do even a command.
There isnt a [ID] thingie
Re: [Help] /Command [ID] -
-Rebel Son- - 24.02.2010
That is part of the function you have to add from you admin/rank sys.
Re: [Help] /Command [ID] -
dclaw - 24.02.2010
Quote:
Originally Posted by [N
Dakota ]
That is part of the function you have to add from you admin/rank sys.
|
Yeah dude i know.
But not what i want.
Somebody with a code here?