22.04.2014, 02:17
Olha peguei este code na search, comece a usar mais a search antes de perguntar aqui.
Adapte ao teu sistema
Adapte ao teu sistema
pawn Код:
#include <yom_buttons>
new butao;
butao = CreateButton(244.83, 74.28, 1004.1,0.0,0.0,0.0,true);
public OnPlayerPressButton(playerid, buttonid)
{
if (buttonid == butao)
{
if(gTeam[playerid] == 2)
{
SendClientMessage(playerid, COLOR_ALLDEPT, "OK");
}
else
{
SendClientMessage(playerid, COLOR_ALLDEPT, "NOP");
}
return true;
}
return false;
}