- 0
Problema /gov
-
Similar Content
-
- 2 replies
- 76 views
-
- 7 answers
- 590 views
-
- 2 answers
- 119 views
-
- 2 answers
- 157 views
-
- 3 answers
- 148 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
Nametodie
Problemă întâlnită (descriere): Cand folosesc /gov, spune ca nu fac parte din factiunea pd, ng sau fbi.
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul:
[pawn] if(strcmp(cmd, "/government", true) == 0 || strcmp(cmd, "/gov", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gTeam[playerid] != 2)
{
SendClientMessage(playerid, COLOR_GREY, "{30a030}[server]: {ffffff}Ne pare rau, dar nu faci parte din factiunea {000cff}LSPD{ffffff}, {000cff}NG {ffffff}sau {000cff}FBI{ffffff}.");
return 1;
}
if(PlayerInfo[playerid][pRank] < 5)
{
SendClientMessage(playerid, COLOR_GREY, "{30a030}[server]: {ffffff}Ne pare rau, dar ai nevie de Rank 5 pentru a utiliza aceasta comanda.");
return 1;
}
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, "» Scrie: (/gov)ernment [text]");
return 1;
}
format(string, sizeof(string), "{000cff}Cop %s: {ffffff}%s", sendername, result);
SendClientMessageToAll(COLOR_DBLUE, string);
}
return 1;
}[/pawn]
Imagini / Video (optional):-
Aţi încercat să rezolvaţi singur?: Da
Link to comment
Share on other sites
3 answers to this question
Recommended Posts