[POMOĆ] /clear cmd

Započeo Renato_ZG_
2. Maj 2010.
1,290
pregleda
5
postova
Renato_zg_
3
Hustler
2. Maj 2010.
Ne radi mi /clear komanda. Kad ju upišem na serveru čovjek se scima... Ugl sa komandom je sve oke, valjda, jer nemam niti jedan err i warning. Jednostavno neće.

Evo komanda, pa vi vidite. Hvala !:

if(strcmp(cmd, "/clear", true) == 0)
{
    if(IsPlayerConnected(playerid))
  {
new member = PlayerInfo;
new leader = PlayerInfo;
new rank = PlayerInfo;
if(gTeam == 2)
{
if (!PlayerToPoint(3.0, playerid, 253.9280,69.6094,1003.6406))
{
SendClientMessage(playerid, COLOR_GRAD2, "  You are to not inside the Police Station!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /clear [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
    if(giveplayerid != INVALID_PLAYER_ID)
    {
                        if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot Clear yourself!"); return 1; }
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* You cleared the Records and Wanted Points of %s.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Officer %s has cleared your Records and Wanted Points.", sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
WantedPoints = 0;
WantedLevel = 0;
ClearCrime(giveplayerid);
if(gTeam==4)
{
    gTeam = 3;
    SetPlayerToTeamColor(giveplayerid);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "  Invalid ID/Name!");
}
}
else if(member == 5||member == 6||leader == 5||leader == 6)
{
    tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /clear [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
    if(giveplayerid != INVALID_PLAYER_ID)
    {
        if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot Clear yourself!"); return 1; }
    if(rank < 4) { SendClientMessage(playerid, COLOR_GREY, "  You need Rank 4 to clear someone's Wanted Points + Records !"); return 1; }
    if(GetPlayerMoney(playerid) < 5000) { SendClientMessage(playerid, COLOR_GREY, "  You need $5000 to Clear your Family Member !"); return 1; }
                GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
    if(member > 0)
    {
    if(PlayerInfo != member)
{
SendClientMessage(playerid, COLOR_GREY, "  That player is not in your Family !");
return 1;
}
format(string, sizeof(string), "* You cleared the Records and Wanted Points of %s for $5000.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Family Member %s with Rank %d, has cleared your Records and Wanted Points.", sendername, rank);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
}
else if(leader > 0)
{
                if(PlayerInfo != leader)
{
SendClientMessage(playerid, COLOR_GREY, "  That player is not in your Family !");
return 1;
}
    format(string, sizeof(string), "* You cleared the Records and Wanted Points of %s for $5000.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Family Leader %s, has cleared your Records and Wanted Points.", sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
}
WantedPoints = 0;
WantedLevel = 0;
ClearCrime(giveplayerid);
GivePlayerMoney(playerid, - 5000);
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "  Invalid ID/Name!");
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "  You are not an Cop / FBI / National Guard / Family Member !");
}
}//not connected
return 1;
}
lumpri
4
Enforcer
2. Maj 2010.
nzn evo ti moja

http://pastebin.com/nAF5QUiH
Renato_zg_
3
Hustler
2. Maj 2010.
Opet ne želi... Ne kužim stvarno, xD. 😢
Deleted User
Obrisan korisnik
2. Maj 2010.
Renato_zg_ wrote on May 2, 2010, 4:45 pm:
čovjek se scima...

Sta se?
Renato_zg_
3
Hustler
2. Maj 2010.
Scima, hehe.  Pomakne se kad upiÅ¡em komandu...

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha