SA-MP Forums Archive
ajuda UPA DE LEVEL - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: ajuda UPA DE LEVEL (/showthread.php?tid=176693)



ajuda UPA DE LEVEL - Gabriel_Fernandes - 14.09.2010

Galeracomo eu fasso pra qndo o player tiver 12/12 de respeito aparecer texto na tela dele pra /comprarnivel


Respuesta: ajuda UPA DE LEVEL - ipsBruno - 14.09.2010

pawn Код:
if(respeito == 12)
{
    //tam tam
}



Re: ajuda UPA DE LEVEL - zSuYaNw - 14.09.2010

Se for Variavel global....
pawn Код:
if(respeito[playerid] == 12)
{

}
pawn Код:
if(strcmp(cmdtext,"/comprarrespeito", true) == 0)
{
   if(respeito[playerid] == 12) return SendClientMessage(playerid,COR,"Vocк nгo tem respeito sufciente para realizar esta aзгo.");
   return 1;
}



Respuesta: Re: ajuda UPA DE LEVEL - ipsBruno - 14.09.2010

new Respeito[MAX_PLAYERS]; nгo й uma variбvel global,й uma variбvel com index MAX_PLAYERS equivalente a 500


Re: ajuda UPA DE LEVEL - zSuYaNw - 14.09.2010

versaun 0.2x tem 200 ...


Re: ajuda UPA DE LEVEL - Gustavob - 14.09.2010

Quote:
Originally Posted by [Full]Garfield[XDB]
Посмотреть сообщение
pawn Код:
if(strcmp(cmdtext,"/comprarrespeito", true) == 0)
{
   if(respeito[playerid] == 12) return SendClientMessage(playerid,COR,"Vocк nгo tem respeito sufciente para realizar esta aзгo.");
   return 1;
}
fail, pelo que vi aн, se o respeito for igual a 12 o comando nao vai funcionar, mas vai funcionar caso o respeito for maior ou menor (mais ou menos, lol)


pawn Код:
if(strcmp(cmdtext,"/comprarnivel", true) == 0)
{
    if(respeito[playerid] < 12)
    {
        SendClientMessage(playerid, COR, "Vocк nгo tem respeito suficiente para realizar esta aзгo.");
    }
    else
    {
        //cod pra comprar nivel
    }
}
pawn Код:
if(respeito[playerid] == 12)
{
    SendClientMessage(playerid, COR, "Voce alcancou 12/12 de respeito! Digite /comprarnivel para comprar nivel
}
se quiser aquele texto grande aparecendo na tela do player:

pawn Код:
if(respeito[playerid] == 12)
{
    GameTextForPlayer(playerid, "Voce alcancou 12/12 de respeito, digite /comprarnivel para comprar nivel", 5000, 0);
}
acho q funciona