[Ajuda] Comandos Fixos Para Orgs - 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] Comandos Fixos Para Orgs (
/showthread.php?tid=406282)
Comandos Fixos Para Orgs -
Fox.CZL - 09.01.2013
ae galera eu tenho o comando
pawn Код:
if (strcmp("/patio1", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10.0,2950.674,-1713.601,10.902))
{
MoveObject(Patio1,2950.681,-1713.505,4.227,3.0);
SetTimerEx("CloseGate", 5000, false, "i", Patio1);
SendClientMessage(playerid, COLOR_YELLOW3, "[INFO] O 1є Portгo do Pбtio Fecharб em 5 Segundos !");
return 1;
}
}
e queria saber se vcs me ajuda pra colocar so para o policial usar ela
alguem me ajudaaaa
Re: Comandos Fixos Para Orgs -
Q.I - 09.01.2013
tenta
pawn Код:
if (strcmp("/patio1", cmdtext, true, 7) == 0){
if (pPolicial[playerid])return SendClientMessage(playerid, -1, "Vocк nгo й um policial");
if(IsPlayerInRangeOfPoint(playerid,10.0,2950.674,-1713.601,10.902)){
MoveObject(Patio1,2950.681,-1713.505,4.227,3.0);
SetTimerEx("CloseGate", 5000, false, "i", Patio1);
SendClientMessage(playerid, COLOR_YELLOW3, "[INFO] O 1є Portгo do Pбtio Fecharб em 5 Segundos !");
}
return true;
}
edit
esqueзa o cуdigo acima ta errado , falta o uma coisa ae , poste sua ENUM COMPLETA e a variavel de info
Re: Comandos Fixos Para Orgs -
Fox.CZL - 09.01.2013
pawn Код:
enum pInfo
{
pAdmin,
pPolicial,
pTrafico,
pPresoLS,
pReporterLS,
pVip,
pTorcida
Re: Comandos Fixos Para Orgs -
@FatalFormat - 09.01.2013
Quote:
Originally Posted by Q.I
tenta
pawn Код:
if (strcmp("/patio1", cmdtext, true, 7) == 0){ if (pPolicial[playerid])return SendClientMessage(playerid, -1, "Vocк nгo й um policial"); if(IsPlayerInRangeOfPoint(playerid,10.0,2950.674,-1713.601,10.902)){ MoveObject(Patio1,2950.681,-1713.505,4.227,3.0); SetTimerEx("CloseGate", 5000, false, "i", Patio1); SendClientMessage(playerid, COLOR_YELLOW3, "[INFO] O 1є Portгo do Pбtio Fecharб em 5 Segundos !"); } return true; }
edit
esqueзa o cуdigo acima ta errado , falta o uma coisa ae , poste sua ENUM COMPLETA e a variavel de info
|
pawn Код:
if (!pPolicial[playerid]) return SendClientMessage(playerid, -1, "Vocк nгo й um policial");