06.03.2013, 22:01
galera tem coisa estranha...a unica coisa que funfa do onplayerdeath й que manda o cara pro hospital o resto nгo funfa nada! oque ta acontecendo?
Isso nгo funciona /\
nem isso /\
e o pior de tudo... ISSO NГO FUNCIONA! Socorro =[
pawn Код:
if(PlayerInfo[killerid][pMembro] == 1 || PlayerInfo[killerid][pLider] == 1)
{
ConsumingMoney[killerid] = 1;
GivePlayerMoneyEx(playerid, - price);
PlayerInfo[playerid][pJailed] = 1;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos na Policia Militar, e perdeu R$%d por trocar tiros e fugir dos policiais.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
}
if(PlayerInfo[killerid][pMembro] == 2 || PlayerInfo[killerid][pLider] == 2)
{
ConsumingMoney[killerid] = 1;
GivePlayerMoneyEx(playerid, - price);
PlayerInfo[playerid][pJailed] = 2;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos na HQ Rotam, e perdeu R$%d por trocar tiros e fugir dos policiais.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
}
if(PlayerInfo[killerid][pMembro] == 3 || PlayerInfo[killerid][pLider] == 3)
{
ConsumingMoney[killerid] = 1;
GivePlayerMoneyEx(playerid, - price);
PlayerInfo[playerid][pJailed] = 3;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos no Exйrcito, e perdeu R$%d por trocar tiros e fugir dos policiais.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
}
if(PlayerInfo[killerid][pMembro] == 16 || PlayerInfo[killerid][pLider] == 16)
{
ConsumingMoney[killerid] = 1;
GivePlayerMoneyEx(playerid, - price);
PlayerInfo[playerid][pJailed] = 16;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos na Rotam-SF, e perdeu R$%d por trocar tiros e fugir dos policiais.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
}
if(PlayerInfo[killerid][pMembro] == 11 || PlayerInfo[killerid][pLider] == 11)
{
ConsumingMoney[killerid] = 1;
GivePlayerMoneyEx(playerid, - price);
PlayerInfo[playerid][pJailed] = 11;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos na Policia Federal, e perdeu R$%d por trocar tiros e fugir dos policiais.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
}
if(PlayerInfo[killerid][pMembro] == 27 || PlayerInfo[killerid][pLider] == 27)
{
ConsumingMoney[killerid] = 1;
GivePlayerMoneyEx(playerid, - price);
PlayerInfo[playerid][pJailed] = 27;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos na Policia Militar de SF, e perdeu R$%d por trocar tiros e fugir dos policiais.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
}
if(PlayerInfo[killerid][pMembro] == 33 || PlayerInfo[killerid][pLider] == 33)
{
ConsumingMoney[killerid] = 1;
GivePlayerMoneyEx(playerid, - price);
PlayerInfo[playerid][pJailed] = 33;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos na HQ dos Heroes!, e perdeu R$%d por trocar tiros e fugir dos policiais.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
}
if(IsACop(killerid))
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && IsACop(i))
{
if(GetPlayerState(i) == 2)
{
PlayerPlaySound(i, 2134, 0.0, 0.0, 0.0);
}
else
{
PlayerPlaySound(i, 1039, 0.0, 0.0, 0.0);
}
format(gstring, sizeof(gstring), "~w~Suspeito ~r~Morto~n~Bonus~g~R$500");
GameTextForPlayer(i, gstring, 5000, 1);
GivePlayerMoneyEx(i, 500);
}
}
}
}
pawn Код:
if(GetPlayerState(killerid) == 2)
{
GetPlayerName(killerid,kickname,sizeof(kickname));
format(gstring,sizeof(gstring),"AdmCmd: %s ID:[%d] cometeu DB em %s ID:[%d] e serб kickado por um administrador !",kickname,killerid,PlayerName(playerid),playerid);
SendClientMessageToAll(COLOR_LIGHTRED,gstring);
}
if(reason == 36)
{
if(IsPlayerConnected(killerid))
{
format(gstring, 128, "AdmAviso: [%d]%s usou Bazuka =2= em %s.",killerid,PlayerName(killerid),PlayerName(playerid));
ABroadCast(COLOR_LIGHTRED,gstring,1);
printf("%s", gstring);
}
}
if(reason == 26)
{
if(IsPlayerConnected(killerid))
{
format(gstring, 128, "AdmAviso: [%d]%s usou 12 Cano cerrado em %s.",killerid,PlayerName(killerid),PlayerName(playerid));
ABroadCast(COLOR_LIGHTRED,gstring,1);
printf("%s", gstring);
}
}
e o pior de tudo... ISSO NГO FUNCIONA! Socorro =[
pawn Код:
if(PlayerInfo[playerid][pHeadValue] > 0 || PlayerInfo[playerid][pHeadValueT] > 0)
{
if(IsPlayerConnected(killerid))
{
if(GetPlayerOrg(killerid) == 8)
{
if(GoChase[killerid] == playerid)
{
if(GetPlayerOrg(killerid) == 8) { CHitman++; }
ConsumingMoney[killerid] = 1;
new killer[MAX_PLAYER_NAME];
GetPlayerName(killerid, killer, sizeof(killer));
GivePlayerMoneyEx(killerid, PlayerInfo[playerid][pHeadValue]);
format(string,128,"<< O Hitman %s Completou o contrato em %s pelo preзo de R$%d >>",killer,name,PlayerInfo[playerid][pHeadValue]);
SendFamilyMessage(GetPlayerOrg(killerid), COLOR_YELLOW, string);
format(string,128,"<< O Hitman %s matou vocк por um contrato de R$%d, entгo nгo foi DM. >>",killer,PlayerInfo[playerid][pHeadValue]);
SendClientMessage(playerid, COLORGZ_EXE, string);
PlayerInfo[playerid][pHeadValue] = 0;
GotHit[playerid] = 0;
GetChased[playerid] = 999;
GoChase[killerid] = 999;
}
}
if(GetPlayerOrg(killerid) == 22)
{
if(GoChase[killerid] == playerid)
{
if(GetPlayerOrg(killerid) == 22) { CTriad++; }
ConsumingMoney[killerid] = 1;
new killer[MAX_PLAYER_NAME];
GetPlayerName(killerid, killer, sizeof(killer));
GivePlayerMoneyEx(killerid, PlayerInfo[playerid][pHeadValueT]);
format(string,128,"<< O Triad %s Completou o contrato em %s pelo preзo de R$%d >>",killer,name,PlayerInfo[playerid][pHeadValue]);
SendFamilyMessage(GetPlayerOrg(killerid), COLOR_YELLOW, string);
format(string,128,"<< O Triad %s matou vocк por um contrato de R$%d, entгo nгo foi DM. >>",killer,PlayerInfo[playerid][pHeadValue]);
SendClientMessage(playerid, COLOR_YELLOW, string);
PlayerInfo[playerid][pHeadValueT] = 0;
GotTri[playerid] = 0;
GetChased[playerid] = 999;
GoChase[killerid] = 999;
}
}
}
}
killerid = INVALID_PLAYER_ID;
SetPlayerColor(playerid,COLOR_GRAD2);
}