SA-MP Forums Archive
[Ajuda] Alguem ae Pode Me ajudar Ficarei Grato - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Alguem ae Pode Me ajudar Ficarei Grato (/showthread.php?tid=358398)



Alguem ae Pode Me ajudar Ficarei Grato - FireBallPlays - 10.07.2012

Ola caras pessoas eu montei meu server mais eu queria fazer umas implementaзoes e alguns comandos que tarao aqui na lista abaixo.Algum cara bondoso poderia me ajudar?Obrigado


---Comando de Setar ADM---Com leveis de 1 a 5---
---Comando de Setar VIP---
---Comandos VIP=Spawnar carro 451 a cada 15 Minutos,Ganhar 1,000,000 a cada 19 minutos,Ganhar 10 leveis e 10 de estudo a cada 19 minutos.
---Onde comprar Vip---


Desculpe se estou pedindo demais ,Obrigado


Re: Alguem ae Pode Me ajudar Ficarei Grato - Bieeel_Cwb - 10.07.2012

toddy ou nescau?


Re: Alguem ae Pode Me ajudar Ficarei Grato - FireBallPlays - 10.07.2012

Toddy


Re: Alguem ae Pode Me ajudar Ficarei Grato - humildadeforever - 10.07.2012

Jб tem as variaveis que identificam o VIP e o admin ?


Re: Alguem ae Pode Me ajudar Ficarei Grato - FireBallPlays - 10.07.2012

Quote:
Originally Posted by humildadeforever
Посмотреть сообщение
Jб tem as variaveis que identificam o VIP e o admin ?
Na verdade nao sei nenhuma das duas mas tem um comandos de dar ADM la que nao funfa dai quero outro


Re: Alguem ae Pode Me ajudar Ficarei Grato - humildadeforever - 10.07.2012

Quote:
Originally Posted by FireBallPlays
Посмотреть сообщение
Na verdade nao sei nenhuma das duas mas tem um comandos de dar ADM la que nao funfa dai quero outro
Olhe os comandos que й necessбrio ser admin e poste aqui :]


Re: Alguem ae Pode Me ajudar Ficarei Grato - andmeida10 - 10.07.2012

https://sampwiki.blast.hk/wiki/Advanced_Structures#Code

https://sampwiki.blast.hk/wiki/Strtok

https://sampwiki.blast.hk/wiki/Useful_Fu....28Dini.inc.29

http://forum.sa-mp.com/showthread.ph...=dini+tutorial


Estuda isso ai, e aprende...


Re: Alguem ae Pode Me ajudar Ficarei Grato - FireBallPlays - 10.07.2012

Quote:
Originally Posted by humildadeforever
Посмотреть сообщение
Olhe os comandos que й necessбrio ser admin e poste aqui :]
Eh que na verdade eu so queria VIP mesmo mas calma ai vou ver...


Re: Alguem ae Pode Me ajudar Ficarei Grato - FireBallPlays - 10.07.2012

//defines
#define ADMIN_SPEC_TYPE_NONE 0
#define ADMIN_SPEC_TYPE_PLAYER 1
#define ADMIN_SPEC_TYPE_VEHICLE 2
new pAdmin[MAX_PLAYERS];

Olha ai alguns dos comandos que nao pega:

if(strcmp(cmd,"/setadmin", true)==0){
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
if(IsPlayerAdmin(playerid)){
new tmp[256];
new plid, skin;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)){
SendClientMessage(playerid, Vermelho, "(ERRO) Digite: /setadmin [id] [Level]");
return 1;
}
plid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "(ERRO) Digite: /setadmin [id] [Level]");
return 1;
}
skin = strval(tmp);
if(skin>=6){
SendClientMessage(playerid, Vermelho, "(ERRO) O level Permitido para ADM e 0 a 5!");
return 1;
}

--------------------------------------------------------------------------------------------

if(strcmp(cmd, "/setarvip", true) == 0) {
if(!IsPlayerAdmin(playerid)) return 0;
new tmp[256];
new plid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, 0x008040AA, "(ERRO) Use: /setarvip [id].");
return 1;
}
plid = strval(tmp);
if(IsPlayerConnected(plid)){
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(file2, sizeof(file2), PASTA_CONTAS, pname);
dini_IntSet(file2, "VIP",1);
SpawnPlayer(plid);
SendClientMessage(playerid, 0x00FF00AA, "(INFO) VIP Setado com sucesso");
SendClientMessage(plid, 0x00FF00AA, "(INFO) Um admin setou VIP para vocк aproveite ");
return 1;
}else{
SendClientMessage(playerid, Vermelho, "(ERRO) ID invбlido");
return 1;
}
}


Re: Alguem ae Pode Me ajudar Ficarei Grato - LucasSilva - 10.07.2012

coloca seu codigo dentro de [pawn] [*/pawn] sem o -> *