[Pomoc] Malo vise

Započeo malipavlek, Jul 12, 2011, 17:30:41 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:Edit Balkan Story
Detaljan opis problema:Jel ja mogu umjesto id organizacija staviti neka slova, nrp:
Za policiju je id 1 jel ja mogu staviti da za policiju bude PD?
Dio skripte:
if(level == 0) { PlayerInfo[para1][pChar] = 0; PlayerInfo[para1][pRank] = 0; gTeam[para1] = 3; PlayerInfo[para1][pTeam] = 0; return 1; }
else if(level == 1) { PlayerInfo[para1][pChar] = 288; } //Police Force
else if(level == 2) { PlayerInfo[para1][pChar] = 286; } //FBI/ATF
else if(level == 3) { PlayerInfo[para1][pChar] = 287; } //National Guard
else if(level == 4) { PlayerInfo[para1][pChar] = 228; } //Fire/Ambulance
else if(level == 5) { PlayerInfo[para1][pChar] = 175; } //Surenos
else if(level == 6) { PlayerInfo[para1][pChar] = 113; } //La Cosa Nostra
else if(level == 7) { PlayerInfo[para1][pChar] = 147; } //Mayor
else if(level == 8) { PlayerInfo[para1][pChar] = 20; } //Hitmans
else if(level == 9) { PlayerInfo[para1][pChar] = 227; } //RTS Studio
else if(level == 10) { PlayerInfo[para1][pChar] = 61; } //Taxi Cab Company
else if(level == 11) { PlayerInfo[para1][pChar] = 121; } //Corleone
else if(level == 12) { PlayerInfo[para1][pChar] = 248; } //Hells Angels
else if(level == 13) { PlayerInfo[para1][pChar] = 104; } //Ballas
else if(level == 15) { PlayerInfo[para1][pChar] = 271; } //GroveStreet Families

Neke slike/video za lakse dobivanje pomoci(neobavezno)://


Skripta koju koristim:EDIT Balkan Story
Detaljan opis problema:Kako staviti kada netko zove /backup da pise %s zove pojacanje.
Dio skripte: if(strcmp(cmd,"/backup",true)==0 || strcmp(cmd,"/bk",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
if (PlayerInfo[playerid][pRequestingBackup] != 1)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "SVE JEDINICE: %s hitno treba pomoc, bice markiran crvenom bojom na mapi.", sendername);
PlayerInfo[playerid][pRequestingBackup] = 1;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 1||PlayerInfo[i][pLeader] == 1)
{
SetPlayerMarkerForPlayer(i, playerid, 0xFF0000FF);
SendClientMessage(i, TEAM_BLUE_COLOR, string);
}
}
}
SendClientMessage(playerid, TEAM_BLUE_COLOR, "Ukucajte /bkc ako vam vise ne treba pomoc.");
SetTimerEx("BackupClear", 180000, false, "ii", playerid, 1);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Vec ste zatrazili pomoc!");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Vi niste policajac!");
}
}
return 1;
}
if(strcmp(cmd,"/backupclear",true)==0 || strcmp(cmd,"/bkc",true)==0)
{
BackupClear(playerid, 0);
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno)://


Skripta koju koristim:EDIT Balkan Story
Detaljan opis problema:Kako staviti kada netko nesto napise na /r ili /d chat da pise s% koristi voki toki.
Dio skripte: za /r if(strcmp(cmd, "/radio", true) == 0 || strcmp(cmd, "/r", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristite: (/r)adio [radio chat]");
return 1;
}
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
    if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "** %s(radio): %s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "** %s(radio): %s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** %s(radio): %s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** %s(radio): %s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** %s(radio): %s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** %s(radio): %s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** %s(radio): %s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** %s(radio): %s, prijem. **", sendername, result); }
else
{
format(string, sizeof(string), "** %s(radio): %s, prijem. **", sendername, result);
}
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SendRadioMessage(1, TEAM_RADIO_COLOR, string);
printf("%s", string);
return 1;
    }
else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else
{
format(string, sizeof(string), "** %s(radio): %s, prijem. **", sendername, result);
}
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SendRadioMessage(2, TEAM_RADIO_COLOR, string);
printf("%s", string);
return 1;
}
else if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{
    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else
{
format(string, sizeof(string), "** %s(radio): %s, prijem. **", sendername, result);
}
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SendRadioMessage(3, TEAM_RADIO_COLOR, string);
printf("%s", string);
return 1;
}
else if(gTeam[playerid] == 1||PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4)
{
format(string, sizeof(string), "** Hitna Pomoc %s: %s, prijem. **", sendername, result);
SendRadioMessage(4, TEAM_RADIO_COLOR, string);
printf("%s", string);
return 1;
}
else if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{
    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else
{
format(string, sizeof(string), "** %s(radio): %s, prijem. **", sendername, result);
}
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SendRadioMessage(5, TEAM_RADIO_COLOR, string);
printf("%s", string);
return 1;
}
else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{
    if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else
{
format(string, sizeof(string), "** %s(radio): %s, prijem. **", sendername, result);
}
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SendRadioMessage(6, TEAM_RADIO_COLOR, string);
printf("%s", string);
return 1;
}
else if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
{
    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Gradonacelnik %s: %s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Telohranitelj %s: %s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Vozac %s: %s, prijem. **", sendername, result); }
else
{
format(string, sizeof(string), "** Not-assigned %s: %s, prijem. **", sendername, result);
}
SendRadioMessage(7, TEAM_RADIO_COLOR, string);
printf("%s", string);
return 1;
}
else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
{
    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else
{
format(string, sizeof(string), "** %s(radio): %s, prijem. **", sendername, result);
}
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SendRadioMessage(8, TEAM_RADIO_COLOR, string);
printf("%s", string);
return 1;
            }
else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
{
    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else
{
format(string, sizeof(string), "** %s(radio): %s, prijem. **", sendername, result);
}
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SendRadioMessage(9, TEAM_RADIO_COLOR, string);
printf("%s", string);
return 1;
}
else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
{
    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else
{
format(string, sizeof(string), "** %s(radio): %s, prijem. **", sendername, result);
}
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SendRadioMessage(10, TEAM_RADIO_COLOR, string);
printf("%s", string);
return 1;
}
else if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
{
    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else
{
format(string, sizeof(string), "** %s(radio): %s, prijem. **", sendername, result);
}
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SendRadioMessage(15, TEAM_RADIO_COLOR, string);
printf("%s", string);
return 1;
}
else if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{
    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** %s(radio): %s **", sendername, result); }
else
{
format(string, sizeof(string), "** %s(radio): %s, prijem. **", sendername, result);
}
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SendRadioMessage(16, TEAM_RADIO_COLOR, string);
printf("%s", string);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "   Niste deo tima !");
return 1;
}
}
return 1;
}

za /d
Citatif(strcmp(cmd, "/departments", true) == 0 || strcmp(cmd, "/d", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         GetPlayerName(playerid, sendername, sizeof(sendername));
         new length = strlen(cmdtext);
         while ((idx < length) && (cmdtext[idx] <= ' '))
         {
            idx++;
         }
         new offset = idx;
         new result[64];
         while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
         {
            result[idx - offset] = cmdtext[idx];
            idx++;
         }
         result[idx - offset] = EOS;
         if(!strlen(result))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "Koristite: (/d)epartments [department chat]");
            return 1;
         }
         if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
         {
             if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "** Chief %s: %s, prijem. **", sendername, result); }
            else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "** Deputy Chief %s: %s, prijem. **", sendername, result); }
            else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Captain %s: %s, prijem. **", sendername, result); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Lieutenant %s: %s, prijem. **", sendername, result); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Sergeant %s: %s, prijem. **", sendername, result); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Corporal %s: %s, prijem. **", sendername, result); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Police Officer %s: %s, prijem. **", sendername, result); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Cadet %s: %s, prijem. **", sendername, result); }
            else
            {
               format(string, sizeof(string), "** Cadet %s: %s, prijem. **", sendername, result);
            }
            SendTeamMessage(2, COLOR_ALLDEPT, string);
            SendTeamMessage(1, COLOR_ALLDEPT, string);
            SendFamilyMessage(7, COLOR_ALLDEPT, string);
            printf("%s", string);
            return 1;
         }
         else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
         {
             if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Director %s: %s, prijem. **", sendername, result); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Assistant Director in Charge %s: %s, prijem. **", sendername, result); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Special Agent in Charge %s: %s, prijem. **", sendername, result); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Special Agent %s: %s, prijem. **", sendername, result); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Special Agent Trainee %s: %s, prijem. **", sendername, result); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Professional Staff %s: %s, prijem. **", sendername, result); }
            else
            {
               format(string, sizeof(string), "** Intern %s: %s, prijem. **", sendername, result);
            }
            SendTeamMessage(2, COLOR_ALLDEPT, string);
            SendTeamMessage(1, COLOR_ALLDEPT, string);
            SendFamilyMessage(7, COLOR_ALLDEPT, string);
            printf("%s", string);
            return 1;
         }
         else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
         {
             if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** General %s: %s, prijem. **", sendername, result); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Lieutenant %s: %s, prijem. **", sendername, result); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Captain %s: %s, prijem. **", sendername, result); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Major %s: %s, prijem. **", sendername, result); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Sergeant %s: %s, prijem. **", sendername, result); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Private %s: %s, prijem. **", sendername, result); }
            else
            {
               format(string, sizeof(string), "** Private %s: %s, prijem. **", sendername, result);
            }
            SendTeamMessage(2, COLOR_ALLDEPT, string);
            SendTeamMessage(1, COLOR_ALLDEPT, string);
            SendFamilyMessage(7, COLOR_ALLDEPT, string);
            printf("%s", string);
            return 1;
         }
         else if(gTeam[playerid] == 1||PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4)
         {
            format(string, sizeof(string), "** Paramedic %s: %s, prijem. **", sendername, result);
            SendTeamMessage(2, COLOR_ALLDEPT, string);
            SendTeamMessage(1, COLOR_ALLDEPT, string);
            SendFamilyMessage(7, COLOR_ALLDEPT, string);
            printf("%s", string);
            return 1;
         }
         else if(PlayerInfo[playerid][pLeader] == 7||PlayerInfo[playerid][pMember] == 7)
         {
             if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Nacelnik %s: %s, prijem. **", sendername, result); }
             else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Mayor's bodyguard %s: %s, prijem. **", sendername, result); }
             else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Mayor's driver %s: %s, prijem. **", sendername, result); }
             else { SendClientMessage(playerid, COLOR_GREY, "  Mayor vam nije dao radio da pricate"); return 1; }
             SendTeamMessage(2, COLOR_ALLDEPT, string);
            SendTeamMessage(1, COLOR_ALLDEPT, string);
            SendFamilyMessage(7, COLOR_ALLDEPT, string);
            printf("%s", string);
             return 1;
         }
         else
         {
            SendClientMessage(playerid, COLOR_GRAD2, "   Niste deo tima !");
            return 1;
         }
      }
      return 1;
   }

Neke slike/video za lakse dobivanje pomoci(neobavezno):


Skripta koju koristim:EDIT Balkan Story
Detaljan opis problema:Kako kada netko pise na /m chat da pise %s uzima megafon i govori.
Dio skripte: if(strcmp(cmd, "/megaphone", true) == 0 || strcmp(cmd, "/m", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
new tmpcar = GetPlayerVehicleID(playerid);
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristite: (/m)egaphone [megaphone chat]");
return 1;
}
if(gTeam[playerid] == 2 || IsACop(playerid) || IsAnFbiCar(playerid))
{
if(!IsACopCar(tmpcar) || !IsAnFbiCar(tmpcar))
{
if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
    new currank[64];
    if(PlayerInfo[playerid][pRank] == 1) { currank = "Kadet"; }
else if(PlayerInfo[playerid][pRank] == 2) { currank = "Policajac"; }
else if(PlayerInfo[playerid][pRank] == 3) { currank = "Agentl"; }
else if(PlayerInfo[playerid][pRank] == 4) { currank = "Inspektor"; }
else if(PlayerInfo[playerid][pRank] == 5) { currank = "Narednik"; }
else if(PlayerInfo[playerid][pRank] == 6) { currank = "Kapetan"; }
else if(PlayerInfo[playerid][pRank] == 7) { currank = "Zamjenik Serifa"; }
        else if(PlayerInfo[playerid][pRank] == 8) { currank = "Serif"; }
else { currank = "Cadet"; }
format(string, sizeof(string), "[%s %s:o< %s]", currank, sendername, result);
ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
}
else if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2)
{
format(string, sizeof(string), "[Agent %s:o< %s]", sendername, result);
ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
}
printf("%s", string);
}
else
{
    SendClientMessage(playerid, COLOR_GRAD2, "   Niste u policijskom vozilu!");
    return 1;
}
}
else
{
    SendClientMessage(playerid, COLOR_GRAD2, "   Niste sastavni deo policije!");
return 1;
}
}
return 1;

Neke slike/video za lakse dobivanje pomoci(neobavezno):


hvala unaprijed na pomoci
Poslednja Izmena: Jul 12, 2011, 20:21:03 POSLE PODNE od malipavlek
http://i.imgur.com/MMUzj.jpg
Pro Zupanja Rol3Play Gaming, dodite i uzivaj te u serveru[KLIKNI NA LINK].
Trazite se vele skripter nagrada 1339 admin, ako bude dobar dobije 1340 admina.
Obratite mi se na PM.