[Ajuda] Comando /cone
#3

Nгo testei, tenta ai pra ver se funciona agora.

PHP код:
  if(!strcmp(cmdtext"/cone"true))
{
if(
EmTrabalho[playerid] == 0)
{
SendClientMessage(playeridCOR_ERRO"ERRO: Vocк nгo estб trabalhando pra poder usar este comando!");
return 
1;
}
if(
PlayerInfo[playerid][pCHQ] >= || PlayerInfo[playerid][pGDE]  >= || PlayerInfo[playerid][pRgt] >= 1)
{
if(
Cone[playerid] == 0)
{
        new 
Float:XFloat:YFloat:ZFloat:A;
        
GetPlayerPos(playeridXYZ);
        
GetPlayerFacingAngle(playeridA);
        
CreateDynamicObject(1237XYZ+4.00.00.0A);
        
SetPlayerPos(playeridXYZ+4.00.00.0);
for(new 
i=0<= MAX_PLAYERSi++)
if(
GetDistanceBetweenPlayers(playeridi) <= 50)
{
new 
pName30 ];
GetPlayerName(playeridpName30);
format(string256"%s criou um cone."pName);
SendClientMessage(i,ROXO,string);
}
}
else
{
SendClientMessage(playeridCOR_ERRO"ERRO: Vocк jб usou /cone, use /rcone para poder usar novamente!");
return 
1;
}
}
return 
1;
}
         if(!
strcmp(cmdtext"/rcone"true))
    {
    if(
PlayerInfo[playerid][pGDE] >= || PlayerInfo[playerid][pRgt] >= 1)
    {
        if(
Cone[playerid] >= 1)
        {
                
DestroyDynamicObject(Cone[playerid]);
        
Cone[playerid] = 0;
        for(new 
i=0<= MAX_PLAYERSi++)
        if(
GetDistanceBetweenPlayers(playeridi) <= 50)
        {
        new 
pName30 ];
        
GetPlayerName(playeridpName30);
        
format(string256"%s destruiu um cone."pName);
        
SendClientMessage(i,ROXO,string);
        }
        }
        else
        {
        
SendClientMessage(playeridCOR_ERRO"ERRO: Vocк nгo usou /cone!");
        return 
1;
        }
    }
    return 
1;
    } 
Reply


Messages In This Thread
Comando /cone - by SrGabriel - 09.12.2014, 22:45
Re: [AJUDA] Comando /cone - by FStralioti - 09.12.2014, 22:54
Re: [AJUDA] Comando /cone - by xJasonxX - 09.12.2014, 23:04
Re: [AJUDA] Comando /cone - by [BOPE]Seu._.Madruga - 10.12.2014, 21:25
Re: [AJUDA] Comando /cone - by JonathanFeitosa - 10.12.2014, 22:59
Re: [AJUDA] Comando /cone - by [BOPE]Seu._.Madruga - 11.12.2014, 00:46
Re : Comando /cone - by SrGabriel - 11.12.2014, 20:47

Forum Jump:


Users browsing this thread: 1 Guest(s)