Just ask do i need to change Function
#1

Hi .. i want to make this work only for admins..
https://sampforum.blast.hk/showthread.php?tid=188355

Do i need to change func.
OnPlayerText

to

OnAdminText or wut ... im beginner in scripting so plz understand me
Reply
#2

pawn Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You need to be admin to use this command!");
You need to add this to the command. This will check if the player is admin, if he isnt admin it just gives him a message, and doesnt do anything else. If hes admin, he gets the dialog popped up
Reply
#3

Thanks for understanding ...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)