Jump to content

NoManPv

Member
  • Posts

    156
  • Joined

  • Last visited

Everything posted by NoManPv

  1. leonard am scos numai aia cu security md_5
  2. YCMD:setadmin(playerid, params[], help) { if(PlayerInfo[playerid][pAdmin] < 0) return SCM(playerid, -1, AdminOnly); new id, level, reason[64]; if(sscanf(params, "uds[64]", id, level, reason)) return SCM(playerid, COLOR_GREY, "USAGE: {FFFFFF}/setadmin [playerid/name] [level] [reason]"); if(id == INVALID_PLAYER_ID || !IsPlayerConnected(id)) return SCM(playerid, COLOR_GREY, "Jucator neconectat."); if(level < 0 || level > 7) return SCM(playerid, COLOR_GREY, "Nivel invalid."); SCMf(id, COLOR_LIGHTBLUE, "Ai fost promovat la admin level %d de catre %s, motiv: %s.", level, GetName(playerid), reason); SCMf(playerid, COLOR_LIGHTBLUE, "L-ai promovat pe %s la admin level %d, motiv: %s.", GetName(id), level, reason); SendAdminMessage(COLOR_LOGS, "AdmCMD: %s a fost promovat de catre %s la admin level %d, motiv: %s.", 1, GetName(id), GetName(playerid), level, reason); if(level == 0) { SpecFaction[id] = 0; UsedFly[id] = 0; StopFly(id); SpawnPlayer(id); Iter_Remove(Admins, id); } else { finishAchievement(id, 27); Iter_Add(Admins, id); } SetPVarInt(id, "SecurityPlayer", 0); PlayerInfo[id][pAdmin] = level; UpdateVar(id, "Admin", level); return 1; }
  3. salut cum pot rezolva dau relog dau /a nu apare nmk dau /admins zice ca nu e nici unu conectat dar eu am admin pot folosi comenzi etc gm goldplay uitati past https://pastebin.com/QMiV9ckc
  4. salut am si eu o problema la sultan paintjob i pun culoare paintjob si cand dau relog nu mai e pe sultan i dau park imi arat culoare uitati poze https://imgur.com/a/0K9UAyB aveti mai multe acolo
  5. nu e compatibila baza de date
  6. cmd:pickup(playerid, params[], help) { new string[128]; if(Mobile[playerid] != 255) return SendClientMessage(playerid, -1, "Esti deja intr-un apel."); if(PhoneOnline[playerid] == 1) return SCM(playerid, COLOR_GREY, "Telefonul tau este inchis!"); foreach(new i: Player) { if(IsPlayerConnected(i) && IsPlayerLogged == 1) { if(Mobile == playerid) { Mobile[playerid] = i; format(string, sizeof(string), "%s a raspuns la telefon.", GetName(playerid)); SCM(i, COLOR_YELLOW, string); format(string, sizeof(string), "* %s a raspuns la telefon.", GetName(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE); if(PlayerInfo[playerid][pPhone] == 0) 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(PlayerInfo[playerid][pPhone] == 1) 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 else if(PlayerInfo[playerid][pPhone] == 2) SetPlayerAttachedObject( playerid,4, 18874, 6, 0.086043, 0.027719, 0.003817, 95.232246, 178.651031, 1.691840, 1.002077, 1.000000, 1.000000 ); // MobilePhone10 - phone10 } } } return 1; }
  7. cmd:call(playerid, params[], help) { new number,string[180],giveplayer[25]; if(sscanf(params, "i",number)) return SCM(playerid, COLOR_GREY, "USAGE: {FFFFFF}/call <Number>"); if(PlayerInfo[playerid][pPhone] == 0) return SCM(playerid, COLOR_GREY, "Nu ai un telefon."); if(PhoneOnline[playerid] > 0) return SCM(playerid, -1, "Telefonul tau este inchis."); if(number == 112) { if(OnDuty[playerid] == 1) return 1; if(WantedReason[playerid] != 999) { new killerid = GetPlayerID(WantedName[playerid]); if(killerid == INVALID_PLAYER_ID) return SCM(playerid, COLOR_GREY, "Acel player nu este conectat."); if(PlayerInfo[killerid][pWantedLevel] >= 6) return SCM(playerid, -1, "Acel player are niveul maxim de wanted!"); PlayerInfo[killerid][pWantedLevel] += 1; format(string, sizeof(string), "Crima raportata!",GetName(killerid)); SCM(playerid,COLOR_CLIENT,string); SetPlayerCriminal(killerid,playerid, "first degree murder"); ShowWanted[killerid] = 1; WantedReason[playerid] = 999; } return 1; } if(number == PlayerInfo[playerid][pPhone]) return SCM(playerid, COLOR_GRAD2, "Ton ocupat..."); if(Mobile[playerid] != 255) return SendClientMessage(playerid, -1, "Esti deja intr-un apel."); foreach(new i: Player) { if(IsPlayerConnected(i) && IsPlayerLogged == 1) { if(PlayerInfo[pPhone] == number && number != 0) { new giveplayerid = i; if(!IsPlayerConnected(giveplayerid) && giveplayerid == INVALID_PLAYER_ID) return SCM(playerid, COLOR_GREY, "Invalid number!"); if(giveplayerid == playerid) return SCM(playerid, COLOR_LGREEN, "Nu iti poti da singur un sms."); if(IsBlocked(giveplayerid, playerid)) return SCM(playerid, COLOR_LGREEN, "Acel player te-a blocat! Nu il poti contacta."); if(IsBlocked(playerid, giveplayerid)) return SCM(playerid, COLOR_LGREEN, "L-ai blocat pe acel player! Nu il poti contacta."); if(Spectate[giveplayerid] != 255) return SCM(playerid, COLOR_GREY, "Acel player este ocupat!"); if(PhoneOnline[giveplayerid] > 0) return SCM(playerid, -1, "Are telefonul inchis."); if(Mobile[giveplayerid] != 255) return SendClientMessage(playerid, COLOR_GREY, "Acel player este deja intr-un apel."); Mobile[playerid] = giveplayerid; format(string, sizeof(string), "%s (%s) te suna. Scrie '/pickup' pentru a raspunde.", GetName(playerid), DecimalNumber(playerid)); SCM(giveplayerid, COLOR_YELLOW, string); new tel[180], tel2[180]; format(tel, 256, "%d", PlayerInfo[playerid][pPhone]); format(tel2, 256, "%d", PlayerInfo[giveplayerid][pPhone]); if(strlen(tel) == 4) format(string, sizeof(string), "%s scoate iPhone-ul si scrie un numar.", GetName(playerid)); else format(string, sizeof(string), "%s scoate telefonul si scrie un numar.", GetName(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GetPlayerName(giveplayerid,giveplayer,sizeof(giveplayer)); if(PlayerInfo[playerid][pPhone] == 0) 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(PlayerInfo[playerid][pPhone] == 1) 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 else if(PlayerInfo[playerid][pPhone] == 2) SetPlayerAttachedObject( playerid,4, 18874, 6, 0.086043, 0.027719, 0.003817, 95.232246, 178.651031, 1.691840, 1.002077, 1.000000, 1.000000 ); // MobilePhone10 - phone10 if(strlen(tel2) == 4) format(string, sizeof(string), "* Suna iPhone-ul lui %s.", giveplayer); else format(string, sizeof(string), "* Suna telefonul lui %s.", giveplayer); ProxDetector(20.0, giveplayerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); CellTime[playerid] = 1; Update(playerid, pCashx); SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE); if(PlayerInfo[playerid][pPhone] == 0) 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(PlayerInfo[playerid][pPhone] == 1) 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 else if(PlayerInfo[playerid][pPhone] == 2) SetPlayerAttachedObject( playerid,4, 18874, 6, 0.086043, 0.027719, 0.003817, 95.232246, 178.651031, 1.691840, 1.002077, 1.000000, 1.000000 ); // MobilePhone10 - phone10 return 1; } } } SCM(playerid, COLOR_GREY, "Invalid number!"); return 1; }
  8. salut cand il sun pe cineva sau i raspund nu imi apare telefonu gm burned uitati si poza https://imgur.com/a/o6L4CmM
×
×
  • Create New...