MOD:Moj privatan je
Problem:Evo problema znaci uzimo sam sa svih modova komandu ovo ono ali ne radi stalno pise kada ocu da kupim produke 0/0 😕 pls pomoc
Deo skripte:recite koji
Slike/Video://
[Pomoc] Produkti
423
pregleda
7
postova
Shot Caller
Novi Član
90 / 100 XP
🌱Početnik(0)
136
Postovi:
19
Teme:
Pridružio se:Feb. 2012
8. Jun 2012.
Kazem uzimo sam komande sa raznih servera uvek isto eo ovo :
eo komande:
if(IsATruck(newcar))
{
if(PlayerInfo == 16)
{
format(string, sizeof(string), "Produkti: %d/%d", PlayerHaul,PlayerHaul);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
SendClientMessage(playerid, WHITE, "("svpl"Pomoc{FFFFFF}!)Produkte dostavljate po Los Santos Firma-ma.");
SendClientMessage(playerid, WHITE, "("svpl"Pomoc{FFFFFF}!) Komanda posla: "svpl"/load /kupipodukte /prodajprodukte");
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, SIVA, "(Izbacen!) Nemate kljuceve od ovog vozila.");
}
}eo komande:
if(strcmp(cmd, "/kupiprodukte", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new tmpcar = GetPlayerVehicleID(playerid);
new compcost = 20;
if(PlayerToPoint(70.0, playerid, 989.2015,-1356.8121,13.3787))
{
if(IsATruck(tmpcar))
{
if(PlayerHaul < PlayerHaul)
{
new amount;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "Koristi: /buyprods ");
return 1;
}
amount = strval(tmp);
if(amount < 1 || amount > 500) { SendClientMessage(playerid, COLOR_GREY, " Ne mozete kupiti manje od 1 ni vise od 500 produkata!"); return 1; }
new check= PlayerHaul + amount;
if(check > PlayerHaul)
{
format(string, sizeof(string), " Presli ste preko limita za kamion od %d, sada vozite %d.",PlayerHaul,PlayerHaul);
SendClientMessage(playerid, COLOR_GREY, string);
return 1;
}
new cost = amount*compcost;
if(GetPlayerMoney(playerid) >= cost)
{
PlayerHaul += amount;
format(string, sizeof(string), "Produkti: %d/%d.", PlayerHaul,PlayerHaul);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
format(string, sizeof(string), "Kupili ste %d Produkte za $%d.", amount,cost);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
GivePlayerCash(playerid,-cost);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
return 1;
}
else
{
format(string, sizeof(string), "Ne mozete da priustite %d Produkata za $%d!", amount,cost);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
return 1;
}
}
else
{
format(string, sizeof(string), "Produkti: %d/%d.", PlayerHaul,PlayerHaul);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
return 1;
}
}
else
{
SendClientMessage(playerid, TEAM_GROVE_COLOR, "Ne mozete vrsiti dostavu produkata sa ovim vozilom.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are not in trucker place.");
return 1;
}
}
return 1;
}
if(strcmp(cmd, "/prodajprodukte", true) == 0)
{
new cashmade;
new tmpcar;
if(IsPlayerConnected(playerid))
{
tmpcar = GetPlayerVehicleID(playerid);
if(!IsATruck(tmpcar))
{
GameTextForPlayer(playerid, "~r~Niste u kamionu za dostavu", 5000, 1);
return 1;
}
if(PlayerHaul == 0)
{
GameTextForPlayer(playerid, "~r~Kamion je prazan, kupite produkte", 5000, 1);
format(string, sizeof(string), "Produkti: %d/%d.", PlayerHaul,PlayerHaul);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
return 1;
}
for(new i = 0; i < sizeof(BizzInfo); i++)
{
if (PlayerToPoint(10, playerid,BizzInfo, BizzInfo, BizzInfo))
{
//printf("Found House :%d",i);
for(new l = PlayerHaul; l > 0; l--)
{
if(BizzInfo == BizzInfo)
{
GameTextForPlayer(playerid, "~r~Nas biznis je fu;", 5000, 1);
format(string, sizeof(string), "Zaradili ste $%d.", cashmade);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
format(string, sizeof(string), "Produkti: %d/%d.", PlayerHaul,PlayerHaul);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
return 1;
}
if(BizzInfo > BizzInfo)
{
GameTextForPlayer(playerid, "~r~Ne mozemo platiti za produkte", 5000, 1);
format(string, sizeof(string), "Zaradili ste $%d.", cashmade);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
format(string, sizeof(string), "Produkti: %d/%d.", PlayerHaul,PlayerHaul);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
return 1;
}
PlayerHaul--;
BizzInfo++;
cashmade = cashmade+BizzInfo;
GivePlayerCash(playerid,BizzInfo);
BizzInfo -= BizzInfo;
if(PlayerHaul == 0)
{
GameTextForPlayer(playerid, "~r~Kamion je prazan, kupite produkte", 5000, 1);
format(string, sizeof(string), "Zaradili ste $%d.", cashmade);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
format(string, sizeof(string), "Produkti: %d/%d.", PlayerHaul,PlayerHaul);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
return 1;
}
}
OnPropUpdate();
return 1;
}
}
}
for(new i = 0; i < sizeof(SBizzInfo); i++)
{
if (PlayerToPoint(10, playerid,SBizzInfo, SBizzInfo, SBizzInfo))
{
//printf("Found House :%d",i);
for(new l = PlayerHaul; l > 0; l--)
{
if(SBizzInfo == SBizzInfo)
{
GameTextForPlayer(playerid, "~r~Nas biznis je ful", 5000, 1);
format(string, sizeof(string), "Zaradili ste $%d.", cashmade);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
format(string, sizeof(string), "Produkti: %d/%d.", PlayerHaul,PlayerHaul);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
return 1;
}
if(SBizzInfo > SBizzInfo)
{
GameTextForPlayer(playerid, "~r~Ne mozemo platiti za produkte", 5000, 1);
format(string, sizeof(string), "Zaradili ste $%d.", cashmade);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
format(string, sizeof(string), "Produkti: %d/%d.", PlayerHaul,PlayerHaul);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
return 1;
}
PlayerHaul--;
SBizzInfo++;
cashmade = cashmade+SBizzInfo;
GivePlayerCash(playerid,SBizzInfo);
SBizzInfo -= SBizzInfo;
if(PlayerHaul == 0)
{
GameTextForPlayer(playerid, "~r~Kamion je prazan, kupite produkte", 5000, 1);
format(string, sizeof(string), "Zaradili ste $%d.", cashmade);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
format(string, sizeof(string), "Produkti: %d/%d.", PlayerHaul,PlayerHaul);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
return 1;
}
}
OnPropUpdate();
return 1;
}
}
GameTextForPlayer(playerid, "~r~Predaleko ste od biznisa", 5000, 1);
return 1;
}
9. Jun 2012.
if(IsATruck(newcar))
{
if(PlayerInfo == 16)
{
format(string, sizeof(string), "Produkti: %d/%d", PlayerHaul,PlayerHaul);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
SendClientMessage(playerid, COLOR_WHITE, "KORISCENJE: Ti sada dovozis produkte za biznisie.");
SendClientMessage(playerid, COLOR_WHITE, "KORISCENJE: Komande su /load /buyprods /sellprods");
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY,"Nemas kljuc ovog vozila.");
}
}Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava