How To make...???
#1

How To Make a Command In Such a Way that On Player Type That Command (eg. /getlevel) Will get Admin Level in Server...
Reply
#2

Depends on whether you use zcmd, ycmd or strcmp.
And also what you use for saving a players level, amdin level etc..
For example I use enums to store my players stuff. pAdmin for the admin level
Reply
#3

I Mean that How Can we Make Like:-

Using zcmd

CMD:getlevel..bala..bala bla..............
Reply
#4

You mean something like this?
Try it and tell me if it works , didnt tested it.


Btw , you didnt gave any information about your script , Try this.

pawn Код:
CMD:getlevel(playerid,params[])
{
    pInfo[playerid][Admin] = 69; //The Level you want.
    return SendClientMessage(playerid,-1,"You are now Admin!");
}
Reply
#5

Since you've given us 0 information about your script and I'm bad at mind reading I'll just lay it out for you..

How do you save data in your script? MySQL flatfile etc..

How's your player data/information enum set up? pInfo[MAX_PLAYERS][Admin] for example

Edit: I read this a little wrong and someone already replied with a valid response above ^
Reply
#6

Quote:
Originally Posted by (*|Flake|*)
Посмотреть сообщение
Since you've given us 0 information about your script and I'm bad at mind reading I'll just lay it out for you..

How do you save data in your script? MySQL flatfile etc..

How's your player data/information enum set up? pInfo[MAX_PLAYERS][Admin] for example

Edit: I read this a little wrong and someone already replied with a valid response above ^
Lol
Reply
#7

Thanks Avy
Reply
#8

No Problem
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)