[Ajuda] O Jogo para
#1

Galera seguinte , quando o player do meu sv digita /kitsociopremium ou /kitsvip o jogo dele para

serб q qual o problema q ta no codigo

/kitsociopremium :
pawn Код:
CMD:kitsociopremium(playerid, params[])
    {
            if(gettime() < GetPVarInt(playerid, "VarDano"))
                return SendClientMessage(playerid, COLOR_GRAD1," Vocк sу poderб equipar 3 minutos apуs tomar dano de alguйm !");

            new string[128];
            GetPlayerName(playerid, sendername, sizeof(sendername));
            if(PlayerInfo[playerid][pVIP] == 6)
            {
                format(string, sizeof string, "{FFFFFF}[Atenзгo]: %s {33AA33}pegou seu Kit {FFFFFF}Sуcio Premium", sendername);
                SendClientMessageInRange(30.0, playerid, string, 0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA);
                //SendClientMessageToAll(COLORGZ_EXE, string);
                ResetPlayerWeapons(playerid);
                TempDropArmasBody[playerid] = 0;
                GivePlayerWeapon(playerid, 24, 400);
                GivePlayerWeapon(playerid, 45,1);
                GivePlayerWeapon(playerid, 16, 16);
                GivePlayerWeapon(playerid, 31, 500);
                GivePlayerWeapon(playerid, 29, 500);
                GivePlayerWeapon(playerid, 25, 200);
                GivePlayerWeapon(playerid, 34, 50);
                GivePlayerWeapon(playerid, 4, 1);
                GivePlayerWeapon(playerid, 36, 2);
                SetPlayerArmour(playerid, 100);
                SetPlayerHealth(playerid, 100);
                SendClientMessage(playerid,COLOR_LIGHTBLUE,"Vocк pegou o seu Kit Sуcio Premium.");
                return true;
            }
            else
            {
                SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк nгo й um Sуcio Premium");
                return true;
            }
    }
/kitsvip :

pawn Код:
CMD:kitsvip(playerid, params[])
    {
            if(gettime() < GetPVarInt(playerid, "VarDano"))
                return SendClientMessage(playerid, COLOR_GRAD1," Vocк sу poderб equipar 3 minutos apуs tomar dano de alguйm !");

            new string[128];
            GetPlayerName(playerid, sendername, sizeof(sendername));
            if(PlayerInfo[playerid][pVIP] == 2)
            {
                format(string, sizeof string, "[SUPER-VIP]: %s pegou seu Kit SUPER-VIP.", sendername);
                SendClientMessageToAll(COLORGZ_EXE, string);
                ResetPlayerWeapons(playerid);
                TempDropArmasBody[playerid] = 0;
                GivePlayerWeapon(playerid, 45,1);
                GivePlayerWeapon(playerid, 16, 16);
                GivePlayerWeapon(playerid, 24, 350);
                GivePlayerWeapon(playerid, 31, 500);
                GivePlayerWeapon(playerid, 29, 500);
                GivePlayerWeapon(playerid, 25, 200);
                GivePlayerWeapon(playerid, 4, 1);
                SetPlayerArmour(playerid, 100);
                SetPlayerHealth(playerid, 100);
                SendClientMessage(playerid,COLOR_LIGHTBLUE,"Vocк pegou o seu Kit SUPER-VIP.");
                return true;
            }
            else
            {
                SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк nгo й um SUPER-VIP.");
                return true;
            }
    }
Reply
#2

PHP код:
CMD:kitsociopremium(playeridparams[])
{
    if(
gettime() < GetPVarInt(playerid"VarDano"))
    return 
SendClientMessage(playeridCOLOR_GRAD1," Vocк sу poderб equipar 3 minutos apуs tomar dano de alguйm !");
    new
        
string[128]
    ;
    
GetPlayerName(playeridsendernamesizeof(sendername));
    if(
PlayerInfo[playerid][pVIP] == 6)
    {
        
format(stringsizeof string"{FFFFFF}[Atenзгo]: %s {33AA33}pegou seu Kit {FFFFFF}Sуcio Premium"sendername);
        
SendClientMessageInRange(30.0playeridstring0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA);
        
//SendClientMessageToAll(COLORGZ_EXE, string);
        
ResetPlayerWeapons(playerid);
        
TempDropArmasBody[playerid] = 0;
        
GivePlayerWeapon(playerid24400);
        
GivePlayerWeapon(playerid45,1);
        
GivePlayerWeapon(playerid1616);
        
GivePlayerWeapon(playerid31500);
        
GivePlayerWeapon(playerid29500);
        
GivePlayerWeapon(playerid25200);
        
GivePlayerWeapon(playerid3450);
        
GivePlayerWeapon(playerid41);
        
GivePlayerWeapon(playerid362);
        
SetPlayerArmour(playerid100);
        
SetPlayerHealth(playerid100);
        
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Vocк pegou o seu Kit Sуcio Premium.");
    }
    else
    {
        
SendClientMessage(playeridCOLOR_LIGHTRED"Vocк nгo й um Sуcio Premium");
    }
    return 
1;
}
CMD:kitsvip(playeridparams[])
{
    if(
gettime() < GetPVarInt(playerid"VarDano"))
    return 
SendClientMessage(playeridCOLOR_GRAD1," Vocк sу poderб equipar 3 minutos apуs tomar dano de alguйm !");
    new
        
string[128]
    ;
    
GetPlayerName(playeridsendernamesizeof(sendername));
    if(
PlayerInfo[playerid][pVIP] == 2)
    {
        
format(stringsizeof string"[SUPER-VIP]: %s pegou seu Kit SUPER-VIP."sendername);
        
SendClientMessageToAll(COLORGZ_EXEstring);
        
ResetPlayerWeapons(playerid);
        
TempDropArmasBody[playerid] = 0;
        
GivePlayerWeapon(playerid45,1);
        
GivePlayerWeapon(playerid1616);
        
GivePlayerWeapon(playerid24350);
        
GivePlayerWeapon(playerid31500);
        
GivePlayerWeapon(playerid29500);
        
GivePlayerWeapon(playerid25200);
        
GivePlayerWeapon(playerid41);
        
SetPlayerArmour(playerid100);
        
SetPlayerHealth(playerid100);
        
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Vocк pegou o seu Kit SUPER-VIP.");
    }
    else
    {
        
SendClientMessage(playeridCOLOR_LIGHTRED"Vocк nгo й um SUPER-VIP.");
    }
    return 
1;

manda essa funзгo SendClientMessageInRange pra mim ver,
Reply
#3

Quote:
Originally Posted by Whoo
Посмотреть сообщение
PHP код:
CMD:kitsociopremium(playeridparams[])
{
    if(
gettime() < GetPVarInt(playerid"VarDano"))
    return 
SendClientMessage(playeridCOLOR_GRAD1," Vocк sу poderб equipar 3 minutos apуs tomar dano de alguйm !");
    new
        
string[128]
    ;
    
GetPlayerName(playeridsendernamesizeof(sendername));
    if(
PlayerInfo[playerid][pVIP] == 6)
    {
        
format(stringsizeof string"{FFFFFF}[Atenзгo]: %s {33AA33}pegou seu Kit {FFFFFF}Sуcio Premium"sendername);
        
SendClientMessageInRange(30.0playeridstring0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA);
        
//SendClientMessageToAll(COLORGZ_EXE, string);
        
ResetPlayerWeapons(playerid);
        
TempDropArmasBody[playerid] = 0;
        
GivePlayerWeapon(playerid24400);
        
GivePlayerWeapon(playerid45,1);
        
GivePlayerWeapon(playerid1616);
        
GivePlayerWeapon(playerid31500);
        
GivePlayerWeapon(playerid29500);
        
GivePlayerWeapon(playerid25200);
        
GivePlayerWeapon(playerid3450);
        
GivePlayerWeapon(playerid41);
        
GivePlayerWeapon(playerid362);
        
SetPlayerArmour(playerid100);
        
SetPlayerHealth(playerid100);
        
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Vocк pegou o seu Kit Sуcio Premium.");
    }
    else
    {
        
SendClientMessage(playeridCOLOR_LIGHTRED"Vocк nгo й um Sуcio Premium");
    }
    return 
1;
}
CMD:kitsvip(playeridparams[])
{
    if(
gettime() < GetPVarInt(playerid"VarDano"))
    return 
SendClientMessage(playeridCOLOR_GRAD1," Vocк sу poderб equipar 3 minutos apуs tomar dano de alguйm !");
    new
        
string[128]
    ;
    
GetPlayerName(playeridsendernamesizeof(sendername));
    if(
PlayerInfo[playerid][pVIP] == 2)
    {
        
format(stringsizeof string"[SUPER-VIP]: %s pegou seu Kit SUPER-VIP."sendername);
        
SendClientMessageToAll(COLORGZ_EXEstring);
        
ResetPlayerWeapons(playerid);
        
TempDropArmasBody[playerid] = 0;
        
GivePlayerWeapon(playerid45,1);
        
GivePlayerWeapon(playerid1616);
        
GivePlayerWeapon(playerid24350);
        
GivePlayerWeapon(playerid31500);
        
GivePlayerWeapon(playerid29500);
        
GivePlayerWeapon(playerid25200);
        
GivePlayerWeapon(playerid41);
        
SetPlayerArmour(playerid100);
        
SetPlayerHealth(playerid100);
        
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Vocк pegou o seu Kit SUPER-VIP.");
    }
    else
    {
        
SendClientMessage(playeridCOLOR_LIGHTRED"Vocк nгo й um SUPER-VIP.");
    }
    return 
1;

manda essa funзгo SendClientMessageInRange pra mim ver,
stock SendClientMessageInRange(Float:_r, playerid, _s[],c1,c2,c3,c4,c5)
{
new Float:_x, Float:_y, Float:_z;
GetPlayerPos(playerid, _x, _y, _z);
foreach(Player, i)
{
if(!BigEar[i])
{
if(GetPlayerVirtualWorld(i) != GetPlayerVirtualWorld(playerid))continue;
if(GetPlayerDistanceFromPoint(i,_x,_y,_z) < _r/16)
SendClientMessage(i, c1, _s);
else if(GetPlayerDistanceFromPoint(i,_x,_y,_z) < _r/
SendClientMessage(i, c2, _s);
else if(GetPlayerDistanceFromPoint(i,_x,_y,_z) < _r/4)
SendClientMessage(i, c3, _s);
else if(GetPlayerDistanceFromPoint(i,_x,_y,_z) < _r/2)
SendClientMessage(i, c4, _s);
else if(GetPlayerDistanceFromPoint(i,_x,_y,_z) < _r)
SendClientMessage(i, c5, _s);
}
else
{
SendClientMessage(i, c1, _s);
}
}
return true;
}
Reply
#4

pelo que vi a funзгo serve pra mandar a mensagem de certa com para determinada distancia, teste e diga se funcionou.


kitsociopremium


PHP код:
CMD:kitsociopremium(playeridparams[])
{
    if(
gettime() < GetPVarInt(playerid"VarDano"))
    return 
SendClientMessage(playeridCOLOR_GRAD1," Vocк sу poderб equipar 3 minutos apуs tomar dano de alguйm !");
    new
        
string[128]
    ;
    
GetPlayerName(playeridsendernamesizeof(sendername));
    if(
PlayerInfo[playerid][pVIP] == 6)
    {
        
format(stringsizeof string"{FFFFFF}[Atenзгo]: %s {33AA33}pegou seu Kit {FFFFFF}Sуcio Premium"sendername);
        
SendClientMessageInRange(30.0playeridstring0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA);
        
//SendClientMessageToAll(COLORGZ_EXE, string);
        
ResetPlayerWeapons(playerid);
        
TempDropArmasBody[playerid] = 0;
        
GivePlayerWeapon(playerid24400);
        
GivePlayerWeapon(playerid45,1);
        
GivePlayerWeapon(playerid1616);
        
GivePlayerWeapon(playerid31500);
        
GivePlayerWeapon(playerid29500);
        
GivePlayerWeapon(playerid25200);
        
GivePlayerWeapon(playerid3450);
        
GivePlayerWeapon(playerid41);
        
GivePlayerWeapon(playerid362);
        
SetPlayerArmour(playerid100);
        
SetPlayerHealth(playerid100);
        
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Vocк pegou o seu Kit Sуcio Premium.");
    }
    else
    {
        
SendClientMessage(playeridCOLOR_LIGHTRED"Vocк nгo й um Sуcio Premium");
    }
    return 
1;

kitsvip

PHP код:
CMD:kitsvip(playeridparams[])
{
    if(
gettime() < GetPVarInt(playerid"VarDano"))
    return 
SendClientMessage(playeridCOLOR_GRAD1," Vocк sу poderб equipar 3 minutos apуs tomar dano de alguйm !");
    new
        
string[128]
    ;
    
GetPlayerName(playeridsendernamesizeof(sendername));
    if(
PlayerInfo[playerid][pVIP] == 2)
    {
        
format(stringsizeof string"[SUPER-VIP]: %s pegou seu Kit SUPER-VIP."sendername);
        
SendClientMessageToAll(COLORGZ_EXEstring);
        
ResetPlayerWeapons(playerid);
        
TempDropArmasBody[playerid] = 0;
        
GivePlayerWeapon(playerid45,1);
        
GivePlayerWeapon(playerid1616);
        
GivePlayerWeapon(playerid24350);
        
GivePlayerWeapon(playerid31500);
        
GivePlayerWeapon(playerid29500);
        
GivePlayerWeapon(playerid25200);
        
GivePlayerWeapon(playerid41);
        
SetPlayerArmour(playerid100);
        
SetPlayerHealth(playerid100);
        
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Vocк pegou o seu Kit SUPER-VIP.");
    }
    else
    {
        
SendClientMessage(playeridCOLOR_LIGHTRED"Vocк nгo й um SUPER-VIP.");
    }
    return 
1;

stock

PHP код:
stock SendClientMessageInRange(Float:_rplayerid_s[],c1,c2,c3,c4,c5)
{
    new
        
Float:_Pos[3]
    ;
    
    
GetPlayerPosplayerid_Pos[0], _Pos[1], _Pos[2] );
    
    foreach( 
Player)
    {
        if(!
BigEar[i])
        {
            if( 
GetPlayerVirtualWorld) != GetPlayerVirtualWorldplayerid ) )continue;
            if( 
GetPlayerDistanceFromPointi_Pos[0], _Pos[1], _Pos[2] ) < _r /16 SendClientMessage(ic1_s);
            else if( 
GetPlayerDistanceFromPoint(i_Pos[0], _Pos[1], _Pos[2] ) < _r SendClientMessage(ic2_s);
            else if( 
GetPlayerDistanceFromPoint(i_Pos[0], _Pos[1], _Pos[2] ) < _r /SendClientMessage(ic3_s);
            else if( 
GetPlayerDistanceFromPoint(i_Pos[0], _Pos[1], _Pos[2] ) < _r /SendClientMessage(ic4_s);
            else if( 
GetPlayerDistanceFromPoint(i_Pos[0], _Pos[1], _Pos[2] ) < _r SendClientMessage(ic5_s);
        }
        else
        {
            
SendClientMessageic1_s );
        }
    }
    return 
1;

Reply
#5

4 erros
pawn Код:
(89522) : error 001: expected token: ")", but found ";"
(89522) : error 017: undefined symbol "YSI_gS"
(89522) : error 036: empty statement
(89522) : fatal error 107: too many error messages on one line
Linha dos erros :

pawn Код:
foreach( Player, i )
Reply
#6

Quote:
Originally Posted by Lucas_Rocha
Посмотреть сообщение
4 erros
pawn Код:
(89522) : error 001: expected token: ")", but found ";"
(89522) : error 017: undefined symbol "YSI_gS"
(89522) : error 036: empty statement
(89522) : fatal error 107: too many error messages on one line
Linha dos erros :

pawn Код:
foreach( Player, i )
tem certeza que й essa linha ? nгo tem erro no codigo esta compilando normal... atualize sua biblioteca
Reply
#7

Sim sгo esses os erros

Atualizei 2x
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)