13.06.2011, 17:51
Can Someone Turn This command In STRCMP PLEASE?
pawn Код:
dcmd_t(playerid, params[]) {
new string[128], name[24];
GetPlayerName(playerid, name, sizeof(name));
switch(gTeam[playerid])
{
case TEAM_Cops:
{
format(string, sizeof(string), "[Team Chat] %s: %s", name, params);
SendTeamMessage(TEAM_Cops, GetPlayerColor(playerid), string);
}
case TEAM_grove:
{
format(string, sizeof(string), "[Team Chat] %s: %s", name, params);
SendTeamMessage(TEAM_grove, GetPlayerColor(playerid), string);
}
case TEAM_vagos:
{
format(string, sizeof(string), "[Team Chat] %s: %s", name, params);
SendTeamMessage(TEAM_vagos, GetPlayerColor(playerid), string);
}
case TEAM_Italian:
{
format(string, sizeof(string), "[Team Chat] %s: %s", name, params);
SendTeamMessage(TEAM_Italian, GetPlayerColor(playerid), string);
}
case TEAM_aztecas:
{
format(string, sizeof(string), "[Team Chat] %s: %s", name, params);
SendTeamMessage(TEAM_aztecas, GetPlayerColor(playerid), string);
}
case TEAM_Triads:
{
format(string, sizeof(string), "[Team Chat] %s: %s", name, params);
SendTeamMessage(TEAM_Triads, GetPlayerColor(playerid), string);
}
}
return 1;
}