Just ask do i need to change Function - 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: Just ask do i need to change Function (
/showthread.php?tid=277175)
Just ask do i need to change Function -
Stereotype - 16.08.2011
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
Re: Just ask do i need to change Function -
Wesley221 - 16.08.2011
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
Re: Just ask do i need to change Function -
Stereotype - 16.08.2011
Thanks for understanding ...