#1

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
Reply
#2

I don't understand what you want.
Reply
#3

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
Reply
#4

helllllllllp
Reply
#5

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

}
Reply
#6

thank u..
Reply
#7

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
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)