kripta koju koristim:moja
Detaljan opis problema: Nemogu da podignem pare ni da sotavim pare u firmu bug neki znal neko mozel pomoc
Dio skripte:nez
Neke slike/video za lakse dobivanje pomoci(neobavezno):http://postimg.org/image/5cavmzivh/
Moze me neko dodat na fb semir badzic ja sjedim 😛 u Ä‘emperu da mi samo pomogne oko skripte nez bas skriptat ☹️
hvala unaprijed
[POMOC]
260
pregleda
5
postova
7. Apr. 2013.
evo za ostavljat
i za podizati
ako treba pomoc dodaj me na skype:celtickings1
f(strcmp(cmd, "/fostavi", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new bouse = PlayerInfo;
if (bouse == 255)
{
SendClientMessage(playerid, COLOR_GRAD2, "Ne posedujete firmu");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
if (bouse >= 100)
{
format(string, sizeof(string), " Imate $%d u vasoj kasi.", SBizzInfo[bouse-100]);
SendClientMessage(playerid, COLOR_GRAD3, string);
}
else
{
format(string, sizeof(string), " Imate $%d u vasoj kasi.", BizzInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
}
SendClientMessage(playerid, COLOR_GRAD2, "{00C0FF}Koriscenje:{FFFFFF} /fostavi ");
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{00C0FF}Koriscenje:{FFFFFF} /fostavi ");
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
if (cashdeposit > GetPlayerMoney(playerid) || cashdeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " Nemate toliko");
return 1;
}
if (bouse >= 100)
{
if(!PlayerToPoint(100, playerid,SBizzInfo[bouse-100],SBizzInfo[bouse-100],SBizzInfo[bouse-100]))
{
SendClientMessage(playerid, COLOR_GRAD2, "Predaleko ste od vase firme");
return 1;
}
else
{
GivePlayerMoney(playerid,-cashdeposit);
SBizzInfo[bouse-100] += cashdeposit;
ExtortionSBiz(bouse-100, cashdeposit);
format(string, sizeof(string), " Stavili ste $%d u vasu kasu, Ukupno: $%d ", cashdeposit,SBizzInfo[bouse-100]);
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "[%d] %s je stavio %d$ u svoju kasu",playerid, sendername, cashdeposit);
PayLog(string);
if(moneys >= 10000)
{
SendAdminMessage(COLOR_YELLOW,string);
}
return 1;
}
}
else
{
if (!PlayerToPoint(100, playerid,BizzInfo,BizzInfo,BizzInfo))
{
SendClientMessage(playerid, COLOR_GRAD2, "Predaleko ste od vase firme");
return 1;
}
else
{
GivePlayerMoney(playerid,-cashdeposit);
BizzInfo += cashdeposit;
ExtortionBiz(bouse, cashdeposit);
format(string, sizeof(string), " Stavili ste $%d u vasu kasu, Ukupno: $%d ", cashdeposit,BizzInfo);
SendClientMessage(playerid, COLOR_YELLOW, string);
return 1;
}
}
}
return 1;
}i za podizati
if(strcmp(cmd, "/fpodigni", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new bouse = PlayerInfo;
if (bouse == 255)
{
SendClientMessage(playerid, COLOR_GRAD2, "Ne posedujete firmu");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
if (bouse >= 100)
{
format(string, sizeof(string), " Imate $%d u vasoj kasi.", SBizzInfo[bouse-100]);
SendClientMessage(playerid, COLOR_GRAD3, string);
}
else
{
format(string, sizeof(string), " Imate $%d u vasoj kasi.", BizzInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
}
SendClientMessage(playerid, COLOR_GRAD2, "{00C0FF}Koriscenje:{FFFFFF} /fpodigni ");
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{00C0FF}Koriscenje:{FFFFFF} /fpodigni ");
return 1;
}
if (bouse >= 100)
{
if(cashdeposit > SBizzInfo[bouse-100] || cashdeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " Nemate toliko");
return 1;
}
}
else
{
if (cashdeposit > BizzInfo || cashdeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " Nemate toliko");
return 1;
}
}
if (bouse >= 100)
{
if(!PlayerToPoint(100, playerid,SBizzInfo[bouse-100],SBizzInfo[bouse-100],SBizzInfo[bouse-100]))
{
SendClientMessage(playerid, COLOR_GRAD2, " Predaleko ste od vase firme");
return 1;
}
else
{
GivePlayerMoney(playerid,cashdeposit);
SBizzInfo[bouse-100] -= cashdeposit;
format(string, sizeof(string), " Uzeli ste $%d iz vase kase, Ukupno: $%d ", cashdeposit,SBizzInfo[bouse-100]);
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "[%d] %s je uzeo iz firme %d$ , a imao je",playerid, sendername, cashdeposit,SBizzInfo[bouse-100] );
PayLog(string);
if(moneys >= 10000)
{
SendAdminMessage(COLOR_YELLOW,string);
}
return 1;
}
}
else
{
if (!PlayerToPoint(100, playerid,BizzInfo,BizzInfo,BizzInfo))
{
SendClientMessage(playerid, COLOR_GRAD2, " Predaleko ste od vaseg firme");
return 1;
}
else
{
GivePlayerMoney(playerid,cashdeposit);
BizzInfo -= cashdeposit;
format(string, sizeof(string), " Uzeli ste $%d iz vase kase, Ukupno: $%d ", cashdeposit,BizzInfo);
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "[%d] %s je uzeo iz firme %d$ , a imao je",playerid, sendername, cashdeposit,BizzInfo);
PayLog(string);
if(moneys >= 40000)
{
SendAdminMessage(COLOR_YELLOW,string);
}
return 1;
}
}
}
return 1;
}ako treba pomoc dodaj me na skype:celtickings1
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava