15.03.2012, 16:24
check it now!
pawn Код:
if(strcmp(cmd, "/help", true) == 0)
{
if(gTeam[playerid] == TEAM_POLICE)//your gTeam and if police
{
format(string,sizeof(string),"\t"lyellow2"{00FF00}Добре дошъл %s на помощната страница на{FFFFFF} {FF0000}FiberPlay GangWars!{FFFFFF}\n", PlayerName(playerid));
strcat(string, "\nPolice: /pduty /arrest /suspectf /mdc");
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","");
}
else//if not police
{
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;
}