Funções
native RestartServidor();
native Congelar(playerid);
native Descongelar(playerid);
native Dia();
native Noite();
native TremerTela(playerid);
native PararTremerTela(playerid);
native SalvarLocal(playerid);
native IrLocal(playerid);
native PlayersAFK(playerid);
native EntrarAFK(playerid);
native SairAFK(playerid);
native PlayersAFK(playerid);
native SetarPos(playerid, Float:x, Float:y, Float:z, Float:ang);
native DarArmas(playerid, Arma1, Ballas1, Arma2, Ballas2, Arma3, Ballas3, Arma4, Ballas4);
native LimparLinhas(playerid, Linhas);
native LimparLinhaAll();
native BanAll();
native KickAll();
native JogadoresOnline();
native MudarNick(playerid, const NickDesejado[]);
native DarCrash(playerid);
native Jetpack(playerid);
native PegarNome(playerid);
native EquiparVidaColete(playerid, Float:health, Float:armour);
Exemplos de Uso
if (strcmp("/restartsv", cmdtext, true) == 0)
{
RestartServidor();
return true;
}
if (strcmp("/mecongelar", cmdtext, true) == 0)
{
Congelar(playerid);
return true;
}
if (strcmp("/medescongelar", cmdtext, true) == 0)
{
Descongelar(playerid);
return true;
}
if (strcmp("/dia", cmdtext, true) == 0)
{
Dia();
return true;
}
if (strcmp("/noite", cmdtext, true) == 0)
{
Noite();
return true;
}
if (strcmp("/tremertela", cmdtext, true) == 0)
{
TremerTela(playerid);
return true;
}
if (strcmp("/parartremer", cmdtext, true) == 0)
{
PararTremerTela(playerid);
return true;
}
if (strcmp("/salvarlocal", cmdtext, true) == 0)
{
SalvarLocal(playerid);
return true;
}
if (strcmp("/irlocal", cmdtext, true) == 0)
{
IrLocal(playerid);
return true;
}
if (strcmp("/entrarafk", cmdtext, true) == 0)
{
EntrarAFK(playerid);
return true;
}
if (strcmp("/sairafk", cmdtext, true) == 0)
{
SairAFK(playerid);
return true;
}
if (strcmp("/playersafk", cmdtext, true) == 0)
{
PlayersAFK(playerid);
return true;
}
if (strcmp("/pegararmas", cmdtext, true) == 0)
{
DarArmas(playerid, 24, 100, 25, 100, 30, 100, 40, 100);
return true;
}
if (strcmp("/limparlinha", cmdtext, true) == 0)
{
LimparLinhas(playerid, 5);
return true;
}
if (strcmp("/limparlinhaAll", cmdtext, true) == 0)
{
LimparLinhaAll();
return true;
}
if (strcmp("/playersonline", cmdtext, true) == 0)
{
new CelulasE[128];
format(CelulasE, sizeof(CelulasE), "Players Online: (%d/%i)",JogadoresOnline(), GetMaxPlayers());
SendClientMessage(playerid, -1, CelulasE);
return true;
}
if (strcmp("/pegarjetpack", cmdtext, true) == 0)
{
Jetpack(playerid);
return true;
}
if (strcmp("/mudarnick", cmdtext, true) == 0)
{
MudarNick(playerid, "[JFS]JonathanF");
return true;
}
if (strcmp("/ganharcrash", cmdtext, true) == 0)
{
DarCrash(playerid);
return true;
}
if (strcmp("/pegarnick", cmdtext, true) == 0)
{
new Celulas[128];
format(Celulas, sizeof(Celulas), "Meu Nick é (( %s ))", PegarNome(playerid));
SendClientMessage(playerid, -1, Celulas);
return true;
}
if (strcmp("/pegarvidacolete", cmdtext, true) == 0)
{
EquiparVidaColete(playerid, 100, 100);
return true;
}
if (strcmp("/entrar", cmdtext, true) == 0)
{
CarregarMapa(playerid);
return true;
}
Postador:Caozinho
0 comentários:
Postar um comentário