some 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: some help (
/showthread.php?tid=161190)
some help -
KJ1 - 19.07.2010
well when i have telport command it's works good and it's telport
so i tryed to make it for admins only but i failed , can you make it like this
if the player write /telport12 , it's says to him , "You are not an admins " , thank you all
Код:
if(!strcmp("/telport12",cmdtext,true)){
SetPlayerPos(playerid, 1415.0325, -995.3412 ,57.5156);
return 1;}
Re: some help -
KJ1 - 19.07.2010
i need it only for admins!!!
Re: some help -
KJ1 - 19.07.2010
as i add to the script if([Playerid][pAdmin]=3
but this don't works!!
Re: some help -
Mystique - 19.07.2010
Код:
if(!strcmp("/telport12",cmdtext,true))
{
if([Playerid][pAdmin] == 3)
{
SetPlayerPos(playerid, 1415.0325, -995.3412 ,57.5156);
}
else{
SendClientMessage(playerid, 0xe7553dAA, You are not an admin.");
}
return 1;
}
Re: some help -
[DK]JaloNik - 19.07.2010
Edit: SOme guy already did what I just did.
And that's the way to do it.
Re: some help -
KJ1 - 19.07.2010
Quote:
Originally Posted by Mystique
Код:
if(!strcmp("/telport12",cmdtext,true))
{
if([Playerid][pAdmin] == 3)
{
SetPlayerPos(playerid, 1415.0325, -995.3412 ,57.5156);
}
else{
SendClientMessage(playerid, 0xe7553dAA, You are not an admin.");
}
return 1;
}
|
thanks..............