[GM] City Life RPG/DM

Započeo propalica2131231, Avgust 08, 2012, 22:10:51 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 5 gostiju pregledaju ovu temu.



Citat: Tobago poslato Avgust 31, 2012, 08:38:20 PRE PODNE
Svaka cast odlican mod samo je bio jedan veci bug ali sam ga resio..
10/10
mozes rec koji bug da ga rijesim
mod nismo previse testali pa je moguce da ih ima

Napravio sam ovo oko komande /ubaci  meni mod radi perfekt znaci nisam jos naletio na neki bug, osim kad uhapsim nekog i on izadje iz zatvora idalje ima lisice, i kad hocu da mu skinem pise da nema i onda se on mora ubit da bih mu nestale.. ostalo 10/10

Citat: Marko poslato Avgust 31, 2012, 11:37:35 PRE PODNE
Napravio sam ovo oko komande /ubaci  meni mod radi perfekt znaci nisam jos naletio na neki bug, osim kad uhapsim nekog i on izadje iz zatvora idalje ima lisice, i kad hocu da mu skinem pise da nema i onda se on mora ubit da bih mu nestale.. ostalo 10/10
stavi arrest komandu ovako

if(strcmp(cmd, "/arrest", true) == 0 || strcmp(cmd, "/uhapsi", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if(gTeam[playerid] == 2  || IsACop(playerid))
{
if(OnDuty[playerid] != 1 && PlayerInfo[playerid][pMember] == 1)
{
    SendClientMessage(playerid, COLOR_GREY, "   Niste na duznosti!");
    return 1;
}
        /*if(!PlayerToPoint(6.0, playerid, 268.3327,77.8972,1001.0391) || !PlayerToPoint(15.0, playerid,1537.2515,-1674.9572,13.3828))
{// Jail spot
    SendClientMessage(playerid, COLOR_GREY, "   You are not near the Jail, can't Arrest!");
    return 1;
}*/

if(PlayerToPoint(6.0, playerid, 268.3327,77.8972,1001.0391) || PlayerToPoint(15.0, playerid,1537.2515,-1674.9572,13.3828) || PlayerToPoint(6.0, playerid, 1528.9080,-1678.0759,5.8906) || PlayerToPoint(6.0, playerid, -1606.9096,677.2825,-5.2421))
{//New arrest system

tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /uhapsi [novcana kazna] [vrijeme (minuta)] [kaucija (0=ne 1=da)] [iznos kaucije]");
return 1;
}
moneys = strval(tmp);
if(moneys < 1 || moneys > 99999) { SendClientMessage(playerid, COLOR_GREY, "   Novcana kazna ne moze biti ispod $1 ni iznad $99999!"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /uhapsi [novcana kazna] [vrijeme (minuta)] [kaucija (0=ne 1=da)] [iznos kaucije]");
return 1;
}
new time = strval(tmp);
if(time < 1 || time > 60) { SendClientMessage(playerid, COLOR_GREY, "   Zatvorska kazna ne moze biti ispod 1 ni iznad 20 minuta!"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /uhapsi [novcana kazna] [vrijeme (minuta)] [kaucija (0=ne 1=da)] [iznos kaucije]");
return 1;
}
new bail = strval(tmp);
if(bail < 0 || bail > 1) { SendClientMessage(playerid, COLOR_GREY, "   Da se dozvoli ili ponisti kaucija, kucajte 0 ili 1!"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /uhapsi [novcana kazna] [vrijeme (minuta)] [kaucija (0=ne 1=da)] [iznos kaucije]");
return 1;
}
new bailprice = strval(tmp);
if(bailprice < 0 || bailprice > 3000000) { SendClientMessage(playerid, COLOR_GREY, "   Kaucija ne moze biti ispod $0 ni iznad $3000000!"); return 1; }
new suspect = GetClosestPlayer(playerid);
if(IsPlayerConnected(suspect))
{
if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedLevel[suspect] < 1)
{
    SendClientMessage(playerid, COLOR_GREY, "   Igrac mora imati barem Wanted Level 1!");
    return 1;
}
format(string, sizeof(string), "* Uhapsili ste %s-a!", giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
GivePlayerCash(suspect, -moneys);
format(string, sizeof(string), "uhapsio vas je %s ~n~    za $%d", sendername, moneys);
GameTextForPlayer(suspect, string, 5000, 5);
SafeResetPlayerWeapons(suspect);
RemovePlayerAttachedObject(giveplayerid,0);
SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_NONE);
if(PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pLeader]==1)
{

format(string, sizeof(string), "Vijesti | {FFFFFF}%s {FF6347}je uhiti trazenog zlocinca {FFFFFF}%s", sendername, giveplayer);
OOCNews(LIGHTRED, string);
}
else if(PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pLeader]==2)
{
format(string, sizeof(string), "Vijesti | {FFFFFF}%s {FF6347}je uhiti trazenog zlocinca {FFFFFF}%s ", sendername, giveplayer);
OOCNews(LIGHTRED, string);
}
else if(PlayerInfo[playerid][pMember]==3||PlayerInfo[playerid][pLeader]==3)
{
format(string, sizeof(string), "Vijesti | {FFFFFF}%s {FF6347}je uhiti trazenog zlocinca {FFFFFF}%s ", sendername, giveplayer);
OOCNews(LIGHTRED, string);
}
new rand = random(sizeof(gRandomJailSpawns));
SetPlayerPos(suspect, gRandomJailSpawns[rand][0], gRandomJailSpawns[rand][1], gRandomJailSpawns[rand][2]);
//SetPlayerHealth(suspect,0)
TogglePlayerControllable(suspect, 1);
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pJailTime] = time * 60;
RemovePlayerAttachedObject(giveplayerid,0);
        SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_NONE);
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "* Uhapseni ste na {FFFFFF}%d {FF6347}sekundi. Kaucija: {FFFFFF}$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, LIGHTRED, string);
                                                                 RemovePlayerAttachedObject(giveplayerid,0);
                SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_NONE);
}
else
{
    JailPrice[suspect] = 0;
format(string, sizeof(string), "* Uhapseni ste na {FFFFFF}%d {FF6347}sekundi. Kaucija: {FFFFFF}Nedostupna", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, LIGHTRED, string);
                                                                 RemovePlayerAttachedObject(giveplayerid,0);
                SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_NONE);
}
PlayerInfo[suspect][pJailed] = 1;
          PlayerInfo[suspect][pArrested] += 1;
SetPlayerFree(suspect,playerid, "Uhapsen");
WantedPoints[suspect] = 0;
WantedLevel[suspect] = 0;
WantLawyer[suspect] = 1;
RemovePlayerAttachedObject(giveplayerid,0);
SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_NONE);
}//distance
}//not connected
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Nema nikoga u blizini za hapsenje.");
    return 1;
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Niste na mjestu za hapsenje.");
    return 1;
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Niste Policajac !");
    return 1;
}
}//not connected
return 1;
}
Poslednja Izmena: Avgust 31, 2012, 12:05:02 POSLE PODNE od Don Conellâ„¢

Citat: [M]Don Conellâ,,¢ poslato Avgust 31, 2012, 12:03:19 POSLE PODNE
Citat: Marko poslato Avgust 31, 2012, 11:37:35 PRE PODNE
Napravio sam ovo oko komande /ubaci  meni mod radi perfekt znaci nisam jos naletio na neki bug, osim kad uhapsim nekog i on izadje iz zatvora idalje ima lisice, i kad hocu da mu skinem pise da nema i onda se on mora ubit da bih mu nestale.. ostalo 10/10
stavi arrest komandu ovako

if(strcmp(cmd, "/arrest", true) == 0 || strcmp(cmd, "/uhapsi", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if(gTeam[playerid] == 2  || IsACop(playerid))
{
if(OnDuty[playerid] != 1 && PlayerInfo[playerid][pMember] == 1)
{
    SendClientMessage(playerid, COLOR_GREY, "   Niste na duznosti!");
    return 1;
}
        /*if(!PlayerToPoint(6.0, playerid, 268.3327,77.8972,1001.0391) || !PlayerToPoint(15.0, playerid,1537.2515,-1674.9572,13.3828))
{// Jail spot
    SendClientMessage(playerid, COLOR_GREY, "   You are not near the Jail, can't Arrest!");
    return 1;
}*/

if(PlayerToPoint(6.0, playerid, 268.3327,77.8972,1001.0391) || PlayerToPoint(15.0, playerid,1537.2515,-1674.9572,13.3828) || PlayerToPoint(6.0, playerid, 1528.9080,-1678.0759,5.8906) || PlayerToPoint(6.0, playerid, -1606.9096,677.2825,-5.2421))
{//New arrest system

tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /uhapsi [novcana kazna] [vrijeme (minuta)] [kaucija (0=ne 1=da)] [iznos kaucije]");
return 1;
}
moneys = strval(tmp);
if(moneys < 1 || moneys > 99999) { SendClientMessage(playerid, COLOR_GREY, "   Novcana kazna ne moze biti ispod $1 ni iznad $99999!"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /uhapsi [novcana kazna] [vrijeme (minuta)] [kaucija (0=ne 1=da)] [iznos kaucije]");
return 1;
}
new time = strval(tmp);
if(time < 1 || time > 60) { SendClientMessage(playerid, COLOR_GREY, "   Zatvorska kazna ne moze biti ispod 1 ni iznad 20 minuta!"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /uhapsi [novcana kazna] [vrijeme (minuta)] [kaucija (0=ne 1=da)] [iznos kaucije]");
return 1;
}
new bail = strval(tmp);
if(bail < 0 || bail > 1) { SendClientMessage(playerid, COLOR_GREY, "   Da se dozvoli ili ponisti kaucija, kucajte 0 ili 1!"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /uhapsi [novcana kazna] [vrijeme (minuta)] [kaucija (0=ne 1=da)] [iznos kaucije]");
return 1;
}
new bailprice = strval(tmp);
if(bailprice < 0 || bailprice > 3000000) { SendClientMessage(playerid, COLOR_GREY, "   Kaucija ne moze biti ispod $0 ni iznad $3000000!"); return 1; }
new suspect = GetClosestPlayer(playerid);
if(IsPlayerConnected(suspect))
{
if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedLevel[suspect] < 1)
{
    SendClientMessage(playerid, COLOR_GREY, "   Igrac mora imati barem Wanted Level 1!");
    return 1;
}
format(string, sizeof(string), "* Uhapsili ste %s-a!", giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
GivePlayerCash(suspect, -moneys);
format(string, sizeof(string), "uhapsio vas je %s ~n~    za $%d", sendername, moneys);
GameTextForPlayer(suspect, string, 5000, 5);
SafeResetPlayerWeapons(suspect);
RemovePlayerAttachedObject(giveplayerid,0);
SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_NONE);
if(PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pLeader]==1)
{

format(string, sizeof(string), "Vijesti | {FFFFFF}%s {FF6347}je uhiti trazenog zlocinca {FFFFFF}%s", sendername, giveplayer);
OOCNews(LIGHTRED, string);
}
else if(PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pLeader]==2)
{
format(string, sizeof(string), "Vijesti | {FFFFFF}%s {FF6347}je uhiti trazenog zlocinca {FFFFFF}%s ", sendername, giveplayer);
OOCNews(LIGHTRED, string);
}
else if(PlayerInfo[playerid][pMember]==3||PlayerInfo[playerid][pLeader]==3)
{
format(string, sizeof(string), "Vijesti | {FFFFFF}%s {FF6347}je uhiti trazenog zlocinca {FFFFFF}%s ", sendername, giveplayer);
OOCNews(LIGHTRED, string);
}
new rand = random(sizeof(gRandomJailSpawns));
SetPlayerPos(suspect, gRandomJailSpawns[rand][0], gRandomJailSpawns[rand][1], gRandomJailSpawns[rand][2]);
//SetPlayerHealth(suspect,0)
TogglePlayerControllable(suspect, 1);
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pJailTime] = time * 60;
RemovePlayerAttachedObject(giveplayerid,0);
        SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_NONE);
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "* Uhapseni ste na {FFFFFF}%d {FF6347}sekundi. Kaucija: {FFFFFF}$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, LIGHTRED, string);
                                                                 RemovePlayerAttachedObject(giveplayerid,0);
                SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_NONE);
}
else
{
    JailPrice[suspect] = 0;
format(string, sizeof(string), "* Uhapseni ste na {FFFFFF}%d {FF6347}sekundi. Kaucija: {FFFFFF}Nedostupna", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, LIGHTRED, string);
                                                                 RemovePlayerAttachedObject(giveplayerid,0);
                SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_NONE);
}
PlayerInfo[suspect][pJailed] = 1;
          PlayerInfo[suspect][pArrested] += 1;
SetPlayerFree(suspect,playerid, "Uhapsen");
WantedPoints[suspect] = 0;
WantedLevel[suspect] = 0;
WantLawyer[suspect] = 1;
RemovePlayerAttachedObject(giveplayerid,0);
SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_NONE);
}//distance
}//not connected
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Nema nikoga u blizini za hapsenje.");
    return 1;
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Niste na mjestu za hapsenje.");
    return 1;
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Niste Policajac !");
    return 1;
}
}//not connected
return 1;
}



Kad zamjenim to sa onim starim izbaci mi 26 errora :S

RemovePlayerAttachedObject(giveplayerid,0);
SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_NONE);


ugl to dodaj u cmd

Meni je na spawnu kada sam htio rent motor , i ono ukucam sve i ne rentami ni oduzme pare , a nece da se pokrene motor.
Arctic Gaming is BACK!


Arctic Gaming Forum - www.security-samp.info

To oko renta kod mene radi izbaci ti fino /rentmoto ti ukucas i gas :) /unrentcar da ga odjavis ono, meni sve radi sad neznam kod vas....

Citat: [M]Don Conellâ,,¢ poslato Avgust 31, 2012, 13:01:43 POSLE PODNE
RemovePlayerAttachedObject(giveplayerid,0);
SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_NONE);


ugl to dodaj u cmd

jbg druze ne ide mi to oko lisica, neznam gdje ubacit to, sta cu mu ja nek se rokaju kad izadju :D
i sta pise tamo gdje ti je spawn kad izadjes iz zatvora posto te spawna tamo negdje na onoj farmi, ima auta i motora za rent, pa reko da i to promjenim da se spawna na obicnom spawnu :)

Boris Spice

Citat: Marko poslato Avgust 31, 2012, 14:08:09 POSLE PODNE
Citat: [M]Don Conellâ,,¢ poslato Avgust 31, 2012, 13:01:43 POSLE PODNE
RemovePlayerAttachedObject(giveplayerid,0);
SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_NONE);


ugl to dodaj u cmd

jbg druze ne ide mi to oko lisica, neznam gdje ubacit to, sta cu mu ja nek se rokaju kad izadju :D
i sta pise tamo gdje ti je spawn kad izadjes iz zatvora posto te spawna tamo negdje na onoj farmi, ima auta i motora za rent, pa reko da i to promjenim da se spawna na obicnom spawnu :)

Kad te spawna tamo napisi /save  i ostat ce ti ta koordinata nadji u modu i zamjeni koordinatom obicnog spawna

Odlican GM, steta sto si zatvorio
Poslednja Izmena: Avgust 31, 2012, 15:10:19 POSLE PODNE od SteXi.ılllı.

Citat: SteXi.ılllı. poslato Avgust 31, 2012, 15:10:02 POSLE PODNE
Odlican GM, steta sto si zatvorio
hvala
znam sad i ja vidim da je steta
svaki dan je bilo 20ak igraca
samo sto je drugi owenr odusto

Citat: [M]Don Conellâ,,¢ poslato Avgust 31, 2012, 15:12:18 POSLE PODNE
Citat: SteXi.ılllı. poslato Avgust 31, 2012, 15:10:02 POSLE PODNE
Odlican GM, steta sto si zatvorio
hvala
znam sad i ja vidim da je steta
svaki dan je bilo 20ak igraca
samo sto je drugi owenr odusto
Hhahaha svaki dan 20-ak igraca bilo ? a kolko si ti ono trajao dan ? dva mozda ? sigurno vise nisi.

Citat: pllopen poslato Avgust 31, 2012, 15:22:35 POSLE PODNE
Citat: [M]Don Conellâ,,¢ poslato Avgust 31, 2012, 15:12:18 POSLE PODNE
Citat: SteXi.ılllı. poslato Avgust 31, 2012, 15:10:02 POSLE PODNE
Odlican GM, steta sto si zatvorio
hvala
znam sad i ja vidim da je steta
svaki dan je bilo 20ak igraca
samo sto je drugi owenr odusto
Hhahaha svaki dan 20-ak igraca bilo ? a kolko si ti ono trajao dan ? dva mozda ? sigurno vise nisi.
budi glup

lock na 24 h