08.05.2012, 21:39
pawn Код:
public OnPlayerConnect(playerid)
{
new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "[SERVER]: %s has joined the server.",name);
SendClientMessageToAll(0xFFFFFFFF, string);
SendClientMessage(playerid, 0xFFFF00AA, "Welcome to ~~~~~~~~~~~~~~~~~~~~~~~~~.");
SendClientMessage(playerid, 0xAA3333AA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
SendClientMessage(playerid, 0xAA3333AA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...");
SendClientMessage(playerid, 0xAFAFAFAA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
GameTextForPlayer(playerid,"Welcome to ~~~~, By ~~~~",5000,1);
return 1;
}
SetPlayerTeamColor(playerid)
{
if (gTeam[playerid] == TEAM_ArmyRUS)
{
SetPlayerTeam(playerid,1);
SetPlayerColor(playerid, TEAM_ArmyRUS_COLOR);
}
else if (gTeam[playerid] == TEAM_ArmyUSA)
{
SetPlayerTeam(playerid,2);
SetPlayerColor(playerid, TEAM_ArmyUSA_COLOR);
}
}
pawn Код:
return 1;