[ajuda] bug /batercartao
#1

queria saber como arruma bug tenho o gm Gf e ta bugado o /batercartao, fala que eu nao sou um policial me ajudem*
Reply
#2

se puder falar o que e o bug e postar o code ajudaria mto...
Reply
#3

Quote:
Originally Posted by badio12
Посмотреть сообщение
se puder falar o que e o bug e postar o code ajudaria mto...
І D:
Reply
#4

ai o code!!, eu sou lider da Pm ai vou /batercartao na Dp, ai aparece que eu nao sou um policial, meu gm й o godfather*

//----------------------------------[offduty]-----------------------------------------------
if(strcmp(cmd, "/batercartao", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pMember] == 1)
{
if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255)
{
if(OnDuty[playerid]==0)
{
format(string, sizeof(string), "* Oficial %s Pegou o Distintivo e sua arma do armбrio.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
GivePlayerWeapon(playerid, 24, 70);
GivePlayerWeapon(playerid, 3, 0);
OnDuty[playerid] = 1;
}
else if(OnDuty[playerid]==1)
{
format(string, sizeof(string), "* Oficial %s Guardou seu Distintivo e sua arma no armбrio.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
GivePlayerWeapon(playerid, 23, 150);
GivePlayerWeapon(playerid, 5, 0);
OnDuty[playerid] = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Vocк nгo estб em um vestiбrio !");
return 1;
}
}
else if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4)
{
if(JobDuty[playerid] == 1)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк esta agora de folga de sua Profissгo e nгo receberб chamada mais.");
JobDuty[playerid] = 0;
Medics -= 1;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк estб agora Trabalhando e receberб chamadas de pessoas em necessidade.");
JobDuty[playerid] = 1;
Medics += 1;
}
}
else if(PlayerInfo[playerid][pJob] == 7)
{
if(JobDuty[playerid] == 1)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк esta agora de folga de sua Profissгo e nгo receberб chamada mais.");
JobDuty[playerid] = 0;
Mechanics -= 1;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк estб agora Trabalhando e receberб chamadas de pessoas em necessidade.");
JobDuty[playerid] = 1;
Mechanics += 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo й um Policial !");
}
}
return 1;
}
Reply
#5

use [pawn.] e [/pawn.] (*sem pontos)

de mais detalhes (:
Reply
#6

mude a linha

if(PlayerInfo[playerid][pMember] == 1)

para

if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
Reply
#7

pawn Код:
//----------------------------------[offduty]-----------------------------------------------
if(strcmp(cmd, "/batercartao", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875))
{
if(OnDuty[playerid]==0)
{
format(string, sizeof(string), "* Oficial %s Pegou o Distintivo e sua arma do armбrio.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
GivePlayerWeapon(playerid, 24, 70);
GivePlayerWeapon(playerid, 3, 0);
OnDuty[playerid] = 1;
}
else if(OnDuty[playerid]==1)
{
format(string, sizeof(string), "* Oficial %s Guardou seu Distintivo e sua arma no armбrio.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
GivePlayerWeapon(playerid, 23, 150);
GivePlayerWeapon(playerid, 5, 0);
OnDuty[playerid] = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Vocк nгo estб em um vestiбrio !");
return 1;
}
}
else if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4)
{
if(JobDuty[playerid] == 1)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк esta agora de folga de sua Profissгo e nгo receberб chamada mais.");
JobDuty[playerid] = 0;
Medics -= 1;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк estб agora Trabalhando e receberб chamadas de pessoas em necessidade.");
JobDuty[playerid] = 1;
Medics += 1;
}
}
else if(PlayerInfo[playerid][pJob] == 7)
{
if(JobDuty[playerid] == 1)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк esta agora de folga de sua Profissгo e nгo receberб chamada mais.");
JobDuty[playerid] = 0;
Mechanics -= 1;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк estб agora Trabalhando e receberб chamadas de pessoas em necessidade.");
JobDuty[playerid] = 1;
Mechanics += 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo й um Policial !");
}
}
return 1;
}
Reply
#8

Desbugou obrigado, mais como eu coloco /equipar, e colocar pra ganhar colete, e life e certas armas?
Reply
#9

pawn Код:
if(strcmp(cmd, "/equipar", true) == 0)
{
SetPlayerHealth(playerid,100);
SetPlayerArmour( playerid,100);
GivePlayerWeapon(....ai continua
return 1;
}
ae um bom exemplo para vc.
e se quiser colocar pra equipar em um certo local e IsPlayerRangeOfPoint...
Reply
#10

Quote:
Originally Posted by badio12
Посмотреть сообщение
pawn Код:
if(strcmp(cmd, "/equipar", true) == 0)
{
SetPlayerHealth(playerid,100);
SetPlayerArmour( playerid,100);
GivePlayerWeapon(....ai continua
return 1;
}
ae um bom exemplo para vc.
e se quiser colocar pra equipar em um certo local e IsPlayerRangeOfPoint...

Ai pra colocar a arma й o nome e a muniзгo??
e se eu quizesse colocar em um certo local
Tipo pega a cordenada que tem no comando /batercartao que eu postei logo acima!!
Sou inicante em pawn e estou fazendo o GM do zero,e que se ninguem ajudar fica dificil, obrigado**
Posta o code pronto com as coordenadas do /batercartao, por favor**
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)