22.05.2011, 22:04
Isto deve resolver o seu problema .
Qualquer problema, verifique se o ID do FBI estб colocado em um dos ifs mesmo .
Espero ter ajudado .
Qualquer problema, verifique se o ID do FBI estб colocado em um dos ifs mesmo .
pawn Код:
if(!strcmp(cmdtext,"/equiparfbi",true))
{
if(IsACop(playerid) || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 2)
{
if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255)
{
if(Equipamentos[playerid] == 1)
{
RemovePlayerAttachedObject(playerid,3);
Equipamentos[playerid] = 0;
}
else if(Equipamentos[playerid] == 0)
{
SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
SendClientMessage(playerid, COLOR_GREEN, "Vocк colocou o seu equipamento");
new nomefbi[MAX_PLAYER_NAME];//Tava faltando iso aki << prap ega o nome do lokin
GetPlayerName(playerid, nomefbi, sizeof(nomefbi));//<<
format(string, sizeof(string), "Argente FBI %s colocou o equipamento. ", nomefbi);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerSkin(playerid, 285)
SafeGivePlayerWeapon(playerid, 24, 1000);
SafeGivePlayerWeapon(playerid, 31, 1000);
SafeGivePlayerWeapon(playerid, 35, 1000);
SafeGivePlayerWeapon(playerid, 40, 1000);
SafeGivePlayerWeapon(playerid, 39, 1000);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
TogglePlayerControllable(playerid, 1);
SetPlayerColor(playerid,0x008EFFFF);
printf("%s", string);
Equipamentos[playerid] = 1;
}
}
}
else
{
SendClientMessage(playerid,COLOR_RED,"Vocк nгo й um ARGENTE FBI.");
}
return true;
}
if(!strcmp(cmdtext,"/desiquiparfbi",true))
{
if(IsACop(playerid) || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 2)
{
if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255)
{
if(Equipamentos[playerid] == 1)
{
RemovePlayerAttachedObject(playerid,3);
Equipamentos[playerid] = 0;
}
else if(Equipamentos[playerid] == 1)
{
RemovePlayerAttachedObject(playerid,3);
SendClientMessage(playerid, COLOR_GREEN, "Vocк guardou o seu equipamento.");
new nomefbi[MAX_PLAYER_NAME];//Tava faltando iso aki << prap ega o nome do lokin
GetPlayerName(playerid, nomefbi, sizeof(nomefbi));//<<
format(string, sizeof(string), "Argente FBI %s guardou o equipamento. ", nomefbi);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeResetPlayerWeapons(playerid);
SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 0);
SetPlayerColor(playerid,0xFFFFFFAA);
TogglePlayerControllable(playerid, 1);
printf("%s", string);
Equipamentos[playerid] = 0;
}
}
}
else
{
SendClientMessage(playerid,COLOR_RED,"Vocк nгo й um ARGENTE FBI.");
}
return true;
}
Espero ter ajudado .