PLEASE HELP!! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: PLEASE HELP!! (
/showthread.php?tid=90501)
PLEASE HELP!! -
wilcock33 - 08.08.2009
Код:
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?
Re: 1 thing... -
Sergei - 08.08.2009
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.
Re: 1 thing... -
wilcock33 - 08.08.2009
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?
Re: 1 thing... -
Mr_Finnigan - 08.08.2009
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
Re: 1 thing... -
wilcock33 - 08.08.2009
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?