Jump to content

Problema iphone burned


NoManPv
 Share

Recommended Posts

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;

}

Link to comment
Share on other sites

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;

}

Link to comment
Share on other sites

Poate te va ajuta http://wiki.sa-mp.com/wiki/SetPlayerAttachedObject nush eu zic sa iei pozitia telefonului dintr-un gm mai stabil ca sa nu iti bati capu` sa il pui sau nush, umbla si tu pe acolo, incearca sa mai descarci odata gamemode burned si sa iei de la o versiune umpic mai veche de exemplu nush 1.29 sau ceva gen poate te ajuta. Succes!

Edited by Heloo12017

imageproxy.png.7955d17348e1ec24f67282204f827f45.png

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...