PLEASE HELP!!
#1

Код:
OnPlayerSpawn(playerid)
{
if(pInfo[Logged] == 1)//you need to change pInfo to the variable u use
{
new name[24];
GetPlayerName(playerid,name,24);
if (strcmp(name, "Slash01", true) == 0)
{
SetPlayerColor(playerid,YourColor);//You need to Change YourColor to the color u wanna use
}
}
return 1;
}
Quote:

)//you need to change pInfo to the variable u use

what does that mean?
Reply
#2

pInfo[MAX_PLAYERS] is variable in your script from which is checks if player is logged in.

Soem scripts use variable like gPlayerLogged[MAX_PLAYERS]. Comment just says to change that to the variable which your script uses to check if palyer is logged in.
Reply
#3

Quote:
Originally Posted by Sergiy
pInfo[MAX_PLAYERS] is variable in your script from which is checks if player is logged in.

Soem scripts use variable like gPlayerLogged[MAX_PLAYERS]. Comment just says to change that to the variable which your script uses to check if palyer is logged in.
i use seif admin, what would i put?
Reply
#4

Quote:
Originally Posted by SLASH01(5KRPT3R)
Код:
OnPlayerSpawn(playerid)
{
if(pInfo[Logged] == 1)//you need to change pInfo to the variable u use
{
new name[24];
GetPlayerName(playerid,name,24);
if (strcmp(name, "Slash01", true) == 0)
{
SetPlayerColor(playerid,YourColor);//You need to Change YourColor to the color u wanna use
}
}
return 1;
}
Quote:

)//you need to change pInfo to the variable u use

what does that mean?
Код:
SetPlayerColor(playerid,COLOR_YELLOW);//You need to Change YourColor to the color u wanna use
he means change your color to COLOR_YELLOW if you want yellow,then do this at top of gamemode somewhere:

Код:
#define COLOR_YELLOW 0xFFFF00FF
Reply
#5

Quote:
Originally Posted by Mr_FinnigaN
Quote:
Originally Posted by SLASH01(5KRPT3R)
Код:
OnPlayerSpawn(playerid)
{
if(pInfo[Logged] == 1)//you need to change pInfo to the variable u use
{
new name[24];
GetPlayerName(playerid,name,24);
if (strcmp(name, "Slash01", true) == 0)
{
SetPlayerColor(playerid,YourColor);//You need to Change YourColor to the color u wanna use
}
}
return 1;
}
Quote:

)//you need to change pInfo to the variable u use

what does that mean?
Код:
SetPlayerColor(playerid,COLOR_YELLOW);//You need to Change YourColor to the color u wanna use
he means change your color to COLOR_YELLOW if you want yellow,then do this at top of gamemode somewhere:

Код:
#define COLOR_YELLOW 0xFFFF00FF
i know what to do with colours LOL

i mean about the Pinfo bit, what do i do if i use Seif Admin?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)