pawn Код:
format(var, 32, "AdminLinha=%d\n",PlayerInfo[playerid][pLinha]);fwrite(hFile, var);
/ah
pawn Код:
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SendClientMessage(playerid, COLOR_WHITE, "[ADM LVL 1] /jogar /afk /sairafk /fogo /tapa /par /ver /setint /calar /kick /ir");
SendClientMessage(playerid, COLOR_WHITE, "[ADM LVL 1] /cnn /tv /congelar /descongelar /sairafk /aviso /trazer");
SendClientMessage(playerid, COLOR_WHITE, "[ADM LVL 1] /avisar /infoarmas /infoplayer /infoxiter /repararid /abastecerid");
SendClientMessage(playerid, COLOR_WHITE, "Teleports /irls /irsf /irlv -- /desligarmenuajuda /ligarmenuajuda /ligargps /desligargps (Exemplo para menus em dialogs)");
}
if( PlayerInfo[playerid][pLinha] == 1) //linha 1
{
SendClientMessage(playerid, COLOR_GREEN,"*** Linha 1 /tapao /arena /criarcarro /destruirid (SOMENTE CARROS CRIADOS)");
}
if (PlayerInfo[playerid][pAdmin] >= 2)
{
SendClientMessage(playerid, COLOR_WHITE, "[ADM LVL 2] /settime /presidio /testetempo /tempo /sethora /produtosmission /setskin");
SendClientMessage(playerid, COLOR_WHITE, "[ADM LVL 2] /respawnid /desbugar /ban /desligarcel /ligarcel /desbanip /tunarcarro");
}
if( PlayerInfo[playerid][pLinha] == 2) //linha 2
{
SendClientMessage(playerid, COLOR_GREEN,"*** Linha 2 /antixiter /savemission /acessos");
}
if( PlayerInfo[playerid][pLinha] == 3) // linha 3
{
SendClientMessage(playerid, COLOR_GREEN,"*** Linha 3 /skick /repararid /abastecerid");
}
/comando = CMD de dar linha
pawn Код:
if(strcmp(cmd, "/darcomando", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 5000)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /darcomando [id] [level(1-2)]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pLinha] = level;
printf("O Admin %s deu a linha de admin %d para o Player %s .", sendername, level, giveplayer);
format(string, sizeof(string), "Parabйns Amigo(a), Vocк ganhou a linha %d de Admin - Por %s.", level, sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "Vocк deu a linha %d para o player %s.", level, giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
}
return 1;
}