Hallo,
ich habe ein Problem mit meinem GangGov
undzwar wenn ich /gsgov eingebe kommt das ich kein Groove Street Member binn..
if(strcmp(cmd, "/gsgov", true) == 0 || strcmp(cmd, "/gsgoverment", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
{
SendClientMessage(playerid, COLOR_GREY, " Du bist kein Grove Street Mitglied");
return 1;
}
if(PlayerInfo[playerid][pRank] < 5)
{
SendClientMessage(playerid, COLOR_GREY, " Du benötigst mindestens Rang 5!");
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, "Benutze: /gsgov(ernment) [Nachricht]");
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ Grove Street ___________|");
if(PlayerInfo[playerid][pLeader] == 13)
{
format(string, sizeof(string), "O.G Nigga %s: %s", sendername, result);
}
SendClientMessageToAll(0x00FF28FF, string);
}
return 1;
}