Pretraga

Pritisnite Enter za pretragu ili Escape za zatvaranje

Pomoc oko /find molim vas

Započeo Mdk22
pre 15 godina
1,048
pregleda
5
postova
Mdk22
Wheel Man
pre 15 godina
Ako bi mi mogao netko kazat kako napravit commandu /find u Pawno nije mi jasno ili neki TUT napravit Molim vas  🙄
lumpri
Enforcer
pre 15 godina
pa imaš to u poslu detektiva valda samo nađeš /find i kopiraš je pod drugom komandom ili tak neš i staviš da je za igrače ili admine bez da imaju posa detektiva ( AKOO NIJE SRYTE NA JAJARSKOM ODGOVORU )
Obrisan korisnik Obrisan korisnik
pre 15 godina
Imas u the Godfather Gamemodeu tu komandu.
Sam
Kingpin
pre 15 godina
if(strcmp(cmd, "/find", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo != 1)
    {
SendClientMessage(playerid, COLOR_GREY, "  You are not a Detective !");
return 1;
    }
    if(PlayerOnMission > 0)
{
SendClientMessage(playerid, COLOR_GREY, "  On a mission right now, can't use this command !");
    return 1;
}
if(UsedFind != 0 && PlayerInfo < 401)
{
    SendClientMessage(playerid, COLOR_GREY, "  You've already searched for someone, wait 2 minutes !");
    return 1;
}
    tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /find [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
    if(giveplayerid != INVALID_PLAYER_ID)
    {
        if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot Find yourself!"); return 1; }
        new points;
        new level = PlayerInfo;
if(level >= 0 && level <= 50)
{ points = 4; }
else if(level >= 51 && level <= 100)
{ points = 6; }
else if(level >= 101 && level <= 200)
{ points = 8; }
else if(level >= 201 && level <= 400)
{ points = 10; }
else if(level >= 401)
{ points = 12; }
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
new Float:X,Float:Y,Float:Z;
GetPlayerPos(giveplayerid, X,Y,Z);
SetPlayerCheckpoint(playerid, X,Y,Z, 6);
FindTime = 1;
FindTimePoints = points;
PlayerInfo ++;
UsedFind = 1;
if(PlayerInfo == 50)
{ SendClientMessage(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 2, soon you are able to find Faction Members."); }
else if(PlayerInfo == 100)
{ SendClientMessage(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 3, soon you are able to find Faction Members."); }
else if(PlayerInfo == 200)
{ SendClientMessage(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 4, you are now able to find Faction Members."); }
else if(PlayerInfo == 400)
{ SendClientMessage(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 5, you are now able to find Faction Members."); }
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "  Invalid Name/ID !");
}
}
    return 1;
}
Mdk22
Wheel Man
pre 15 godina
Quote from April 20, 2010, 7:12 pm:
if(strcmp(cmd, "/find", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo != 1)
    {
SendClientMessage(playerid, COLOR_GREY, "   You are not a Detective !");
return 1;
    }
    if(PlayerOnMission > 0)
{
SendClientMessage(playerid, COLOR_GREY, "   On a mission right now, can't use this command !");
    return 1;
}
if(UsedFind != 0 && PlayerInfo < 401)
{
    SendClientMessage(playerid, COLOR_GREY, "   You've already searched for someone, wait 2 minutes !");
    return 1;
}
    tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /find [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
    if(giveplayerid != INVALID_PLAYER_ID)
    {
        if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot Find yourself!"); return 1; }
        new points;
        new level = PlayerInfo;
if(level >= 0 && level <= 50)
{ points = 4; }
else if(level >= 51 && level <= 100)
{ points = 6; }
else if(level >= 101 && level <= 200)
{ points = 8; }
else if(level >= 201 && level <= 400)
{ points = 10; }
else if(level >= 401)
{ points = 12; }
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
new Float:X,Float:Y,Float:Z;
GetPlayerPos(giveplayerid, X,Y,Z);
SetPlayerCheckpoint(playerid, X,Y,Z, 6);
FindTime = 1;
FindTimePoints = points;
PlayerInfo ++;
UsedFind = 1;
if(PlayerInfo == 50)
{ SendClientMessage(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 2, soon you are able to find Faction Members."); }
else if(PlayerInfo == 100)
{ SendClientMessage(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 3, soon you are able to find Faction Members."); }
else if(PlayerInfo == 200)
{ SendClientMessage(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 4, you are now able to find Faction Members."); }
else if(PlayerInfo == 400)
{ SendClientMessage(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 5, you are now able to find Faction Members."); }
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Invalid Name/ID !");
}
}
    return 1;
}

EE hvala ti brate

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava