03.02.2011, 22:47
queria saber como arruma bug tenho o gm Gf e ta bugado o /batercartao, fala que eu nao sou um policial me ajudem*
//----------------------------------[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;
}
if(strcmp(cmd, "/equipar", true) == 0)
{
SetPlayerHealth(playerid,100);
SetPlayerArmour( playerid,100);
GivePlayerWeapon(....ai continua
return 1;
}
pawn Код:
e se quiser colocar pra equipar em um certo local e IsPlayerRangeOfPoint... |