[DUVBloquear Comando com player perto
#1

eaw glr tipo eu queria bloquear o comando se tivesse alguem perto pra o cara nao fugir do x1 e dar/navio mais so quando tivesse um cara perto e meu gm nao e rpg D
Reply
#2

cria um cmd de sair sу pra admins dai o cara nao vai arregar ^^
Reply
#3

nao vei vc nao entendeu eu queria tipo o /usardrogas ta lgd quando tem um plklayer de outra gang perto o que o meu nao e rpg e tdm
Reply
#4

Adciona isso no seu Cуdigo.


pawn Код:
if (ProxDetectorS(8.0, playerid, giveplayerid))
                    {
                        SendClientMessage(playerid, COR, "Vocк nгo pode usar isso perto de outros Jogadores!");
                        return 1;
                    }
                    else
                    {
                        //Cуdigo das Drogas.
                        return 1;
                    }
Reply
#5

C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(349) : error 017: undefined symbol "ProxDetectorS"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#6

Corrigindo
if (ProxDetectors(8.0, playerid, giveplayerid))
{
SendClientMessage(playerid, COR, "Vocк nгo pode usar isso perto de outros Jogadores!");
return 1;
}
else
{
//Cуdigo das Drogas.
return 1;
}

se nao der tenta asim
if (ProxDetector(8.0, playerid, giveplayerid))
{
SendClientMessage(playerid, COR, "Vocк nгo pode usar isso perto de outros Jogadores!");
return 1;
}
else
{
//Cуdigo das Drogas.
return 1;
}
Reply
#7

pawn code:
if(!strcmp(cmdtext, "/t1", true))
{
if (ProxDetector(8.0, playerid, giveplayerid))
{
SendClientMessage(playerid, COR, "Vocк nгo pode usar isso perto de outros Jogadores!");
return 1;
}
else
{
//Cуdigo das Drogas.
if(blockjail[playerid] == 1)
{
return SendClientMessage(playerid, 0xFF0000AA, "Vocк nгo pode digitar nenhum comando enquanto estiver preso!");
}
if(blockx1[playerid] == 1)
{
return SendClientMessage(playerid, 0xFF0000AA, "Vocк nгo pode digitar nenhum comando enquanto estiver no x1");
}
new pName[30];
if(blocktele[playerid] == 1)
{
return GameTextForPlayer(playerid, "~r~Acabaram seus teleports", 4000, 5);
}
if(GetPlayerMoney(playerid) >= 50)
{
GetPlayerName(playerid, pName, 30);
format(string, 256, "%s foi para San Fierro (/t1)", pName);
SendClientMessageToAll(0xFFFFAE96, string);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, -2305.6019, 154.0411, 465.6993);
SetPlayerFacingAngle(playerid, 247.6584);
GivePlayerWeapon(playerid, 46, 1);
GivePlayerMoney(playerid, -50);
blocktele[playerid] = 1;
}
else if(GetPlayerMoney(playerid) < 50)
{
SendClientMessage(playerid, 0xFF0000FF, "Vocк nгo tem dinheiro suficiente");
}
return 1;
}


C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(256) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(266) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(272) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(290) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(292) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(29 : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(316) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(31 : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(324) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(340) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(342) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(349) : error 017: undefined symbol "ProxDetector"
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(351) : error 017: undefined symbol "COR"
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(352) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(359) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(363) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(36 : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(386) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(391) : warning 225: unreachable code
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(395) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(400) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(445) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(453) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(461) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(46 : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(479) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\win.WWW-C10EAF28F1C\Desktop\plugins\gamemodes\MataMata2008 .pwn(487) : error 079: inconsistent return types (array & non-array)

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply


Forum Jump:


Users browsing this thread: