[AJUDA]Comando
#1

Mais uma ajudinha aqui Pf

O comando esta funcionando normal mais qria que tipo fosse criado mбximo de tapetes 10/10
tipo se um jogador criar um 1/10 c outro jogador criar um 2/10 e assim vai
se tiver 10/10 criado jб jogador nenhum poderб criar ate um tapete destruir


alguйm sabe e pode me ajudar


Код:
if(strcmp(cmdtext,"/tapete", true) == 0) {
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(dini_Int(file, "Profissao") == Policia_Civil || dini_Int(file, "Profissao") == Policia_Federal || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "Profissao") == Delegado || dini_Int(file, "Profissao") == Bope || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == Narcoticos || dini_Int(file, "Profissao") == Policia_Militar || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == Policia_Rodoviaria || dini_Int(file, "aAdmin") == 1){
if(CDT[playerid] == 0)
{
CDT[playerid] = 1;
GetPlayerPos(playerid,xx,yy,zz);
GetPlayerFacingAngle(playerid, B);
Tapete = CreateObject(2899, xx, yy, zz-0.9, 0, 0,B-90, 300.0);
GameTextForPlayer(playerid,"~w~Tapede criado :)",6000,1);
SetTimerEx("DestruirObjeto",600000,false,"d",Tapete);
return 1;
}
if(CDT[playerid] == 1)
{
CDT[playerid] = 0;
DestroyObject(Tapete);
GameTextForPlayer(playerid,"~w~Tapede Deletado",6000,1);
xx=0,
yy=0,
zz=0;
return 1;
}
} else {
SendClientMessage(playerid,Vermelho,"(ERRO) Vocк nгo й um Policial!");
}
return 1;
}
}
Reply


Messages In This Thread
[AJUDA]Comando - by Fireblad - 08.07.2011, 01:25
Re: [AJUDA]Comando - by Shadoww5 - 08.07.2011, 02:23

Forum Jump:


Users browsing this thread: 3 Guest(s)