SA-MP Forums Archive
[Ajuda] Org por ponto - 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] Org por ponto (/showthread.php?tid=533318)



Org por ponto - mateus1546 - 23.08.2014

Olб! Bom eu queria que tipo quando eu selecionasse a org hitman eu tenho que ter mais de 500 pontos se nao, nao pode entrar.
Ai esta o script (Essa й a resposta de uma dialog)

if(listitem == 4)
{
gTeam[playerid] = Hitmans;
SendClientMessage(playerid, CorHitmans,"Vocк Escolheu Ser um Hitman");
SpawnPlayer(playerid);
return 1;
}

PS: Sou novo no forum quem puder me ensinar a colocar um pawn Code:


Re: Org por ponto - Pocahontas - 23.08.2014

pawn Код:
if(listitem == 4)
{
    if(GetPlayerScore(playerid) < 500) return SendClientMessage(playerid, 0xC0C0C0AA, "Score insuficiente.");
    gTeam[playerid] = Hitmans;
    SendClientMessage(playerid, CorHitmans,"Vocк Escolheu Ser um Hitman");
    SpawnPlayer(playerid);
    return 1;
}