if (!strcmp(cmdtext, "/sexshop", true))
if(IsPlayerConnected(playerid))
if(PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 4)
{
timerkiller = SetTimer("sexshop", 1000, true);
format(string, sizeof(string), "** %s Dispatch: FIRE REPORTED AT EOC IdleWood SEX Shop!!! **", sendername);
format(string, sizeof(string), "** %s Dispatch: Get rid of the fire ASAP!!! **", sendername);
SendRadioMessage(1, COLOR_BLUE, string);
SendRadioMessage(2, COLOR_BLUE, string);
SendRadioMessage(3, COLOR_BLUE, string);
SendRadioMessage(4, COLOR_BLUE, string);
SendRadioMessage(15, COLOR_BLUE, string);
return 1;
}
if (!strcmp(cmdtext, "/sexshop", true))
if(IsPlayerConnected(playerid))
if(PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 4)
{
timerkiller = SetTimer("sexshop", 1000, true);
format(string, sizeof(string), "** %s Dispatch: FIRE REPORTED AT EOC IdleWood SEX Shop!!! **", sendername);
format(string2, sizeof(string2), "** %s Dispatch: Get rid of the fire ASAP!!! **", sendername);
SendRadioMessage(1, COLOR_BLUE, string);
SendRadioMessage(2, COLOR_BLUE, string);
SendRadioMessage(3, COLOR_BLUE, string);
SendRadioMessage(4, COLOR_BLUE, string);
SendRadioMessage(15, COLOR_BLUE, string);
return 1;
}
|
Originally Posted by pepper
so something like this?
were would string2[128]; go? Код:
if (!strcmp(cmdtext, "/sexshop", true))
if(IsPlayerConnected(playerid))
if(PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 4)
{
timerkiller = SetTimer("sexshop", 1000, true);
format(string, sizeof(string), "** %s Dispatch: FIRE REPORTED AT EOC IdleWood SEX Shop!!! **", sendername);
format(string2, sizeof(string2), "** %s Dispatch: Get rid of the fire ASAP!!! **", sendername);
SendRadioMessage(1, COLOR_BLUE, string);
SendRadioMessage(2, COLOR_BLUE, string);
SendRadioMessage(3, COLOR_BLUE, string);
SendRadioMessage(4, COLOR_BLUE, string);
SendRadioMessage(15, COLOR_BLUE, string);
return 1;
}
|
if (!strcmp(cmdtext, "/sexshop", true))
if(IsPlayerConnected(playerid))
if(PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 4)
{
timerkiller = SetTimer("sexshop", 1000, true);
format(string, sizeof(string), "** %s Dispatch: FIRE REPORTED AT EOC IdleWood SEX Shop!!! **", sendername);
new string2[61];
format(string2, sizeof(string2), "** %s Dispatch: Get rid of fire ASAP!!! **", sendername);
SendRadioMessage(1, COLOR_BLUE, string);
SendRadioMessage(2, COLOR_BLUE, string);
SendRadioMessage(3, COLOR_BLUE, string);
SendRadioMessage(4, COLOR_BLUE, string);
SendRadioMessage(15, COLOR_BLUE, string);
return 1;
}
format(string2, sizeof(string2), "** %s Dispatch: Get rid of the fire ASAP!!! **", sendername);