Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Recommended Posts

Posted

M-am gandit sa va dau si voua comenzile create de mine (pt. ca m-ati ajutat cu multe erori :D ):

Lista Comenzilor (voi mai da edit sa adaug!):

[/reporters] &  [/reporteri]:

[pawn]if(strcmp(cmd, "/reporters", true) == 0 || strcmp(cmd, "/reporteri", true) == 0)

{

        if(IsPlayerConnected(playerid))

    {

            new count = 0;

SendClientMessage(playerid, COLOR_YELLOW, "Reporteri Online:");

for(new i = 0; i < MAX_PLAYERS; i++)

{

if(IsPlayerConnected(i))

{

    if(PlayerInfo[pMember] == 9 || PlayerInfo[pLeader] == 9)

    {

GetPlayerName(i, sendername, sizeof(sendername));

format(string, 256, "**[%d]%s | Rank: %d | Telefon: [%d]", i,sendername,PlayerInfo[pRank],PlayerInfo[pPnumber]);

SendClientMessage(playerid, COLOR_WHITE, string);

count++;

}

}

}

            if(count == 0)

{

SendClientMessage(playerid,COLOR_LIGHTRED,"Nici un reporter online pe server");

SendClientMessage(playerid,0xCCD802AA, "[____________________________________]");

}

}

return 1;

}[/pawn]

Asta considerand ca id-ul factiunii News Reporter este 9 !

[/lisenser] & [/instructori]:

[pawn]if(strcmp(cmd, "/licenser", true) == 0 || strcmp(cmd, "/instructori", true) == 0)

{

        if(IsPlayerConnected(playerid))

    {

            new count = 0;

SendClientMessage(playerid, COLOR_YELLOW, "Instructori Online:");

for(new i = 0; i < MAX_PLAYERS; i++)

{

if(IsPlayerConnected(i))

{

    if(PlayerInfo[pMember] == 11 || PlayerInfo[pLeader] == 11)

    {

GetPlayerName(i, sendername, sizeof(sendername));

format(string, 256, "**[%d]%s | Rank: %d | Telefon: [%d]", i,sendername,PlayerInfo[pRank],PlayerInfo[pPnumber]);

SendClientMessage(playerid, COLOR_WHITE, string);

count++;

}

}

}

            if(count == 0)

{

SendClientMessage(playerid,COLOR_LIGHTRED,"Nici un instructor online pe server");

SendClientMessage(playerid,0xCCD802AA, "[____________________________________]");

}

}

return 1;

}[/pawn]

11 - ID-ul factiunii School Instructor !

[/medics] & [/medici]

[pawn]if(strcmp(cmd, "/medici", true) == 0 || strcmp(cmd, "/medics", true) == 0)

{

        if(IsPlayerConnected(playerid))

    {

            new count = 0;

SendClientMessage(playerid, COLOR_YELLOW, "Medici Online:");

for(new i = 0; i < MAX_PLAYERS; i++)

{

if(IsPlayerConnected(i))

{

    if(PlayerInfo[pMember] == 4 || PlayerInfo[pLeader] == 4)

    {

GetPlayerName(i, sendername, sizeof(sendername));

format(string, 256, "**[%d]%s | Rank: %d | Telefon: [%d]", i,sendername,PlayerInfo[pRank],PlayerInfo[pPnumber]);

SendClientMessage(playerid, COLOR_WHITE, string);

count++;

}

}

}

            if(count == 0)

{

SendClientMessage(playerid,COLOR_LIGHTRED,"Nici un medic online pe server");

SendClientMessage(playerid,0xCCD802AA, "[____________________________________]");

}

}

return 1;

}[/pawn]

4 - ID-ul factiunii S.M.U.R.D. (sau Fireman/Paramedics, sau ce aveti voi)

Guest PlayON
Posted

Dute ba de aici =))

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.