SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Old 10/08/2015, 04:01 PM   #1
Little Clucker
Join Date: May 2014
Posts: 47
Reputation: 0
Default Command Help

how to make admin command included check if player is admin level X (admin system) in ini file using y_ini...
i want to read the player data in ini and put into this PlayerInfo[playerid][pAdmin] > 1...hope someone help me :v
Armageddonz is offline   Reply With Quote
Old 10/08/2015, 04:05 PM   #2
Join Date: Jul 2011
Posts: 639
Reputation: 52
Default Re: Command Help

This is an area to receive help of scripts created. You seem to be a newbie to scripting so I recommend hitting up the tutorials section to first learn saving systems, then look into enumerations.
Script in Development
Server IP: Unavailable
Teamspeak: Unavailable
Website: Unavailable
nmader is offline   Reply With Quote
Old 10/08/2015, 04:08 PM   #3
Little Clucker
Join Date: Oct 2013
Location: Spain
Posts: 35
Reputation: 3
Default Respuesta: Command Help

pawn Code:
if(strcmp(cmdtext, "/command", true) == 0)
    if(PlayerInfo[playerid][pAdmin] > 0) //If playerid isn't a admin, he can't type this.
        //Your command
    else SendClientMessage(playerid, -1, "You aren't admin.");
    return 1;
Yerro is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with YCMD proces command and problem with "Server:Unknown command JoDe Scripting Help 1 20/04/2018 12:12 PM
[Plugin] mcmd Command Engine - Plugin based command processing Mellnik Plugin Development 108 08/05/2016 01:55 PM
i had this command in my gamemode, when i type this in game,it tells server unknow command? Chrisli520 Scripting Help 3 24/11/2013 10:02 AM
Executed ZCMD command returns SERVER: Unknown Command SexTourist Scripting Help 12 03/01/2012 03:38 PM
Slap command returns an Unknown Command when player is not connected HydraX Help Archive 16 01/08/2011 05:19 AM

All times are GMT. The time now is 09:04 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.