GetPlayerScore Help!
#1

Hey all I show one Server where was with Function

EXEMPLE: GetPlayerScore == 1000
and its make your admin

I want same thing with admin but i dont know the Code whats make you LuxAdmin admin !

Like:

Код:
if(GetPlayerScore(playerid) >= 1000)
{
And i want do everyone know like!

Код:
EXEMPLE: SendClientMessageToAll(0x0000FFFF,"%s Player Promoted Level 1 Admin,playername,)

I need help with GetPlayerName too
Код:
#DEFINE COLOR_BLUE 0x0000FFFF
Someone Help me!
Reply
#2

pawn Код:
#include <ladmin>
#define COLOR_BLUE 0x0000FFFF

if(GetPlayerScore(playerid) >= 1000 && !IsPlayerLuxAdmin(playerid))
{
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playerName, sizeof(playername));
IsPlayerLuxAdminLevel(playerid) = 1;
SendClientMessageToAll(COLOR_BLUE, "Player %s Has Been Promoted To Level 1 Admin!", playername);
}
return 1;
}
Reply
#3

Eee

Wtf I got

Many errors by

Код:
 playerid
Eeeeee I got many errors!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!
Reply
#4

SORRY FOR DOUBLE POSTING BUT HELP ME!!!
Reply
#5

@Threshold
pawn Код:
SendClientMessageToAll(COLOR_BLUE, "Player %s Has Been Promoted To Level 1 Admin!", playername);
:S

@James Coral, I'm psych and I can see errors you get... And Turn Caps Lock Off and stop screaming. Wait for help!
Reply
#6

Post your errors so we can help.
Reply
#7

Lol Here is the errors

Код:
C:\Users\eesti\Desktop\test1\system.pwn(38) : error 017: undefined symbol "playerid"
C:\Users\eesti\Desktop\test1\system.pwn(41) : error 017: undefined symbol "playerid"
C:\Users\eesti\Desktop\test1\system.pwn(42) : error 017: undefined symbol "playerid"
C:\Users\eesti\Desktop\test1\system.pwn(42) : warning 215: expression has no effect
C:\Users\eesti\Desktop\test1\system.pwn(43) : warning 202: number of arguments does not match definition
C:\Users\eesti\Desktop\test1\system.pwn(45) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
btw did i do right?

CODE:

Код:
public OnGameModeInit()

{
if(GetPlayerScore(playerid) >= 1000 && !IsPlayerLuxAdmin(playerid))
{
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
IsPlayerLuxAdminLevel(playerid) = 1;
SendClientMessageToAll(0x0000FFFF, "%s Has Been Promoted To Level 1 Admin!", playername);
}
	return 1;
}
Reply
#8

Quote:
Originally Posted by [MG]Dimi
Посмотреть сообщение
@Threshold
pawn Код:
SendClientMessageToAll(COLOR_BLUE, "Player %s Has Been Promoted To Level 1 Admin!", playername);
:S

@James Coral, I'm psych and I can see errors you get... And Turn Caps Lock Off and stop screaming. Wait for help!
Lol
Btw Errors added
Reply
#9

I don't think it should be under OnGameModeInit...
Reply
#10

Where Then i need do add it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)