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: help (
/showthread.php?tid=159326)
help -
KJ1 - 13.07.2010
Hello how i can make pm only for admins
i mean if admin need to pm player
only admin have acess to use it
thank u all
Re: help - TheInnocentOne - 13.07.2010
I don't understand what you want.
Re: help -
KJ1 - 13.07.2010
i need /pm for admin only for answering the player
or pm the player
i mean if player do /pm said to him "you are'nt an admins"
and i need /pm command
thank you all
Re: help -
KJ1 - 13.07.2010
helllllllllp
Re: help -
DJDhan - 13.07.2010
Under your PM command :
Код:
if(!strcmp(cmdtext,"/pm",true))
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xff0000aa,"You are not an admin.");//you can use the variable you use for storing the admin level of a player
//rest of your code
}
Re: help -
KJ1 - 13.07.2010
thank u..
Re: help -
KJ1 - 13.07.2010
i got errors C:\DOCUME~1\Wattad\Desktop\GMS\GODFAT~1\GAMEMO~1\g faaaaa.pwn(8083) : warning 217: loose indentation
C:\DOCUME~1\Wattad\Desktop\GMS\GODFAT~1\GAMEMO~1\g faaaaa.pwn(8091) : warning 217: loose indentation
Re: help -
Adil - 13.07.2010
Quote:
Originally Posted by KJ1
i got errors C:\DOCUME~1\Wattad\Desktop\GMS\GODFAT~1\GAMEMO~1\g faaaaa.pwn(8083) : warning 217: loose indentation
C:\DOCUME~1\Wattad\Desktop\GMS\GODFAT~1\GAMEMO~1\g faaaaa.pwn(8091) : warning 217: loose indentation
|
Indent the code, make it equal to the code above, or four spaces added if the above line is a opening bracket.