- 0
Problema Wanted
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
HasH
Problema intalnita (descriere): Salut , am si eu o problema in legatura cu wanted-ul , cand omor pe cineva ar trebui sa arate ca ai 60 secunde sa dai /call 911
Dar problema este cand cineva ma omora nu apare niciun mesaj
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul:
if((WarInfo[turfkiller][wTime] != 0 && (WarInfo[turfkiller][wAttacker] == playerVariables[playerid][pGroup] || WarInfo[turfkiller][wFaction] == playerVariables[playerid][pGroup]) && playerVariables[playerid][pGroup] != 0) || (playerVariables[killerid][pGroup] == 1 || playerVariables[killerid][pGroup] == 2 || playerVariables[killerid][pGroup] == 3 || playerVariables[killerid][pGroup] == 5) || (playerVariables[playerid][pGroup] == 1 || playerVariables[playerid][pGroup] == 2 || playerVariables[playerid][pGroup] == 3 || playerVariables[playerid][pGroup] == 5) || (playerVariables[playerid][pGroup] == playerVariables[killerid][pGroup]) || (PlayerPaintballing[killerid] >= 1)) { } else { WantedID[playerid] = killerid; SCM(playerid, COLOR_GENANNOUNCE, "You have been attacked by another player. You have 60 seconds to call the police to report this crime. Use /call 112."); WantedIDTime[playerid] = 60; } //SetTimerEx("Spawn", 3999, 0, "d", playerid); SetPlayerHealth(playerid, 0); killerid = INVALID_PLAYER_ID; return 1; }CMD:call(playerid, params[]) { new number, string[128]; if(isnull(params)) return SCM(playerid, COLOR_GREY, SYNTAX_MESSAGE"/call [number]"); number = strval(params); if(playerVariables[playerid][pPhoneNumber] == -1) { SCM(playerid, COLOR_GREY, "You don't have a phone."); } else if(playerVariables[playerid][pPhoneNumber] == number) { SCM(playerid, COLOR_GREY, "You're trying to call yourself."); } else { if(playerVariables[playerid][pPhoneNumber] > 0) { if(playerVariables[playerid][pPhoneStatus] == 1) { if(playerVariables[playerid][pPhoneCredit] >= 3) { if(Mobile[playerid] == 255) { if(number == 112) { if(WantedID[playerid] != -1) { if(WantedIDTime[playerid] >= 1) { new killerid = WantedID[playerid]; if(playerVariables[killerid][pWarrants] < 6) { playerVariables[killerid][pWarrants]++; SetPlayerWantedLevel(killerid, playerVariables[killerid][pWarrants]); format(szMessage, sizeof(szMessage), "You have commited a crime: first degree murder. W: +1. Reporter: %s", playerVariables[playerid][pNormalName]); SCM(killerid, COLOR_RED, szMessage); format(playerVariables[killerid][pCrimeReason], 250, "%sfirst degree murdern", playerVariables[killerid][pCrimeReason]); } else { format(szMessage, sizeof(szMessage), "You have commited a crime: first degree murder. W: +1. Reporter: %s", playerVariables[playerid][pNormalName]); SCM(killerid, COLOR_RED, szMessage); } WantedIDTime[playerid] = -1; WantedID[playerid] = -1; SCM(playerid, -1, "This player has wanted now. Thank you for reporting the crime."); } } else { SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE); Mobile[playerid] = 911; SCM(playerid, COLOR_WHITE, "You've called Emergency services, please select the department you desire (i.e: LSPD, LSFMD)."); } } else if(number != -1) { foreach(Player, i) { new giveplayerid = i; if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(playerVariables[giveplayerid][pPhoneNumber] == number) { Mobile[playerid] = giveplayerid; GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME); if(playerVariables[playerid][pPhone] == 1) { format(string, sizeof(string), "* %s takes out their cellphone, and dials in a number.", szPlayerName, number); } else if(playerVariables[playerid][pPhone] == 2) { format(string, sizeof(string), "* %s takes out their iPhone, and dials in a number.", szPlayerName, number); } SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE); nearByMessage(playerid, COLOR_PURPLE, string); if(playerVariables[playerid][pPhone] == 1) { SetPlayerAttachedObject(playerid,4,330,6, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); } else if(playerVariables[playerid][pPhone] == 2) { SetPlayerAttachedObject( playerid, 4, 18865, 6, 0.086043, 0.027719, 0.003817, 95.232246, 178.651031, 1.691840, 1.002077, 1.000000, 1.000000 ); // MobilePhone1 - phone1 } nearByMessage(i, COLOR_PURPLE, string); format(szMessage, sizeof(szMessage), "You are called by %s. Type /p(ickup) to respond to this call.", playerVariables[playerid][pNormalName]); SCM(giveplayerid, COLOR_YELLOW, szMessage); CellTime[playerid] = 1; return 1; } } } } } else SCM(playerid, COLOR_GREY, "(cellphone) *busy tone*"); } else SCM(playerid, COLOR_GREY, "You are currently in a call."); } else SCM(playerid, COLOR_GREY, "You have no remaining phone credit - visit a 24/7 to top it up."); } else SCM(playerid, COLOR_GREY, "You must switch your phone on first (/turn on)."); } else SCM(playerid, COLOR_GREY, "You don't have a phone."); } return 1; }Imagini / Video (optional):
Ati incercat sa rezolvati singur?:
0 answers to this question
Recommended Posts