23.04.2014, 01:57
assim tb tar pra fazer esse comando /ann й de um servido de RPG tem como passa pra TRUCK ou tira alguma coisa pra passa pra TRUCK esse coma o ADM pode falar na tela..me ajuda a fazer isso assim fico menos burro kkkkk..
pawn Код:
if(strcmp(cmd, "/ann", true) == 0)
{
if(pAdmin[playerid] == 1 || pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5 || pAdmin[playerid] == 6)
{
new tmp[256];
tmp = strtok(cmdtext, idx, strlen(cmdtext));
if(!strlen(tmp))
{
SendClientMessage(playerid, Vermelho, "Digite: /ann [texto]");
return 1;
}
if(PlayerInfo[playerid][Logged] == 1)
{
if(pAdmin[playerid] == 1 || pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5 || pAdmin[playerid] == 6)
{
format(string, sizeof(string), "~g~] ~w~%s ~g~]", tmp);
GameTextForAll(string, 5000, 3);
}
else
{
SendClientMessage(playerid, Vermelho, "Vocк nгo tem permissгo para usar este comando!");
}
}
else
{
SendClientMessage(playerid, Vermelho, "Vocк tem que estar logado para usar este comando!");
}
}
return 1;
}