15.02.2011, 16:36
Esse codigo estб dando o erro na Library do PAWNO.
Codigo:
Alguem ajuda?
Codigo:
pawn Код:
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(PlayerToPoint(3, playerid,254.6732,77.0985,1003.6406))
{
if(OnDuty[playerid]==0)
{
format(string, sizeof(string), "O PM %s pegou seus equipamentos e distintivo.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 24, 200);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 25, 100);
GivePlayerWeapon(playerid, 29, 500);
GivePlayerWeapon(playerid, 31, 200);
GivePlayerWeapon(playerid, 30, 200);
SetPlayerArmour(playerid, 100);
if(PlayerInfo[playerid][pRank] < 4){
SetPlayerSkin(playerid, 280);
}if(PlayerInfo[playerid][pRank] > 6)
SetPlayerSkin(playerid, 281);
}
OnDuty[playerid] = 1;
}
else if(OnDuty[playerid]==1)
{
format(string, sizeof(string), "O PM %s deixou seus equipamentos e distintivo.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк recebeu sua arma pessoal de volta.");
SafeResetPlayerWeapons(playerid);
SetPlayerArmour(playerid, 0);
SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
SafeGivePlayerWeapon(playerid, 24, 21);
OnDuty[playerid] = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "[RTG] Vocк nгo estб no vestiбrio da PM!");
return 1;
}
}