Sziasztok!Azt szeretnem kerdezni hogy hogyan tudnám az megcsinalni azt hogy ha valaki a Groove bandát választja akkor annak a nevének a szine zöld legyen úgyan ugy a ballas-nál is hogy lila legyen?
#include <a_samp>
new pTeam[MAX_PLAYERS];
#define TEAM_GROOVE 1
#define TEAM_BALLAS 2
main()
{
print(\"\\n----------------------------------\");
print(\" Blank Gamemode by your name here\");
print(\"----------------------------------\\n\");
}
public OnGameModeInit()
{
// Don\'t use these lines if it\'s a filterscript
SetGameModeText(\"Blank Script\");
AddPlayerClass(106, 1958.3783, 1343.1572, 15.3746, 269.1425, 16,10,22,1000,26,500,32,1000,31,1000,34,500);
AddPlayerClass(102, 1958.3783, 1343.1572, 15.3746, 269.1425, 16,10,22,1000,26,500,32,1000,31,1000,34,500);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
switch(classid)
{
case 0:
{
SetPlayerTeam(playerid,TEAM_GROOVE);
GameTextForPlayer(playerid,\"~b~GROOVE\",5000,3);
return 1;
}
case 1:
{
SetPlayerTeam(playerid,TEAM_BALLAS);
GameTextForPlayer(playerid,\"~r~BALLAS\",5000,3);
return 1;
}
}
return 1;
}