14.03.2012, 20:50
Hello,
i'm looking for a pawn code which can show text in dialog only for one team.
Here an example:
But i want to put it in this dialog:
Тhank you in advance.
i'm looking for a pawn code which can show text in dialog only for one team.
Here an example:
PHP код:
if (PlayerInfo[playerid][pMember] == TEAM_POLICE)
{
SendClientMessage(playerid, COLOR_BLUE,"Police: /pduty /arrest /suspectf /mdc");
}
PHP код:
if(strcmp(cmd, "/help2", true) == 0)
{
format(string,sizeof(string),"\t"lyellow2"{00FF00}Добре дошъл %s на помощната страница на{FFFFFF} {FF0000}FiberPlay GangWars!{FFFFFF}\n", PlayerName(playerid));
strcat(string,""lyellow2"[GENERAL]: /stats (/t)eam /pm /turfhelp /count\n");
strcat(string,""lblue"[GENERAL]: /rules /report /changepass /id /animlist /time\n");
strcat(string,""lorange"[GENERAL]: /hitman /teamstats /pay /lotto /bounties /admins\n");
strcat(string,""lgreen"[VIP]: /vip /vipusers /viphelp\n");
strcat(string,"\t"lred"Gangs: /acceptfaction(/af) /cancelfaction(/cf) /leaders\n\n\t\t"lred"FiberPlay.net");
ShowPlayerDialog(playerid,5555,0,""lred"GENERAL HELP",string,"OK","");
return 1;
}