15.02.2011, 12:35
pawn Код:
public OnPlayerText(playerid, text[])
{
if(admintrampando[playerid] = 1)
{
SetPlayerChatBubble(playerid, "ADMIN Posso Ajudar?", 0xFF0000FF, 100.0, 10000);
return 1;
}
return 1;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256], idx;
cmd = strtok(cmdtext, idx);
if (strcmp(cmd, "/sa", true) == 0)
{
switch(admintrampando[playerid]) {
case 0: admintrampando[playerid] = 1; //liga
case 1: admintrampando[playerid] = 0; //desliga
default: return 0;
}
return 1;
}
return 0;
}