admin on duty
#1

Can someone make me cmd for admin on duty with color, full health & armor please ^^
Reply
#2

Simple:

pawn Код:
//top of script
new AdminDuty[MAX_PLAYERS];

//OnPlayerConnect
AdminDuty[playerid] = 0;

//Admin duty command
AdminDuty[playerid] = 1;
//SetPlayerColor, Health Etc.

//Checking if an admin is on duty
if(AdminDuty[playerid])
{
//Do Stuff
}
You need to experiment more with variables, then things will be alot easier.
Reply
#3

Quote:
Originally Posted by Norn
Simple:

pawn Код:
//top of script
new AdminDuty[MAX_PLAYERS];

//OnPlayerConnect
AdminDuty[playerid] = 0;

//Admin duty command
AdminDuty[playerid] = 1;
//SetPlayerColor, Health Etc.

//Checking if an admin is on duty
if(AdminDuty[playerid])
{
//Do Stuff
}
You need to experiment more with variables, then things will be alot easier.
Thanks man xD
Reply
#4

C:\Users\Korisnik\Desktop\Admin na duznosti.pwn(2) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Korisnik\Desktop\Admin na duznosti.pwn(5) : error 010: invalid function or declaration
C:\Users\Korisnik\Desktop\Admin na duznosti.pwn( : error 010: invalid function or declaration
C:\Users\Korisnik\Desktop\Admin na duznosti.pwn(12) : error 010: invalid function or declaration
C:\Users\Korisnik\Desktop\Admin na duznosti.pwn(15) : error 054: unmatched closing brace ("}")
C:\Users\Korisnik\Desktop\Admin na duznosti.pwn(17) : warning 203: symbol is never used: "AdminDuty"
C:\Users\Korisnik\Desktop\Admin na duznosti.pwn(17) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Errors.

Can someone help me to fix this!
Reply
#5

Quote:
Originally Posted by James_Bauer
C:\Users\Korisnik\Desktop\Admin na duznosti.pwn(2) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Korisnik\Desktop\Admin na duznosti.pwn(5) : error 010: invalid function or declaration
C:\Users\Korisnik\Desktop\Admin na duznosti.pwn( : error 010: invalid function or declaration
C:\Users\Korisnik\Desktop\Admin na duznosti.pwn(12) : error 010: invalid function or declaration
C:\Users\Korisnik\Desktop\Admin na duznosti.pwn(15) : error 054: unmatched closing brace ("}")
C:\Users\Korisnik\Desktop\Admin na duznosti.pwn(17) : warning 203: symbol is never used: "AdminDuty"
C:\Users\Korisnik\Desktop\Admin na duznosti.pwn(17) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Errors.

Can someone help me to fix this!
The given script doesent work. You have to complete it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)