Započeo Lumpri77
•22. Apr. 2010.Tri mala pitanja
1,545
pregleda
9
postova
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
287
Postovi:
64
Teme:
Pridružio se:Dec. 2009
22. Apr. 2010.
Evo malih pitanja PLS odgovor
* Kako da maknem BAÅ SVA auta iz skripte i da sam stavljam nova
* Kako da na ovu komandu za enter stavim da me frezira na 2sec
edit
* Kako na ovu komandu dodat da s može samo u playertopoint 7.00 na određene kordinate
* Kako da maknem BAÅ SVA auta iz skripte i da sam stavljam nova
* Kako da na ovu komandu za enter stavim da me frezira na 2sec
Quote
else if (PlayerToPoint(8.0, playerid,1460.5590,-1011.8144,26.843😎)
{
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid,4365.4482,-1545.6127,26.169😎;
}
{
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid,4365.4482,-1545.6127,26.169😎;
}
edit
* Kako na ovu komandu dodat da s može samo u playertopoint 7.00 na određene kordinate
Quote
if(strcmp(cmd, "/bank", true) == 0 || strcmp(cmd, "/deposit", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo != 103)
{
SendClientMessage(playerid, COLOR_GREY, " You are not at the Bank !");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /bank ");
format(string, sizeof(string), " You Have $%d in your account.", PlayerInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /bank ");
format(string, sizeof(string), " You Have $%d in your account.", PlayerInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
if (cashdeposit > GetPlayerMoney(playerid) || cashdeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " You dont have that much");
return 1;
}
GivePlayerMoney(playerid,-cashdeposit);
new curfunds = PlayerInfo;
PlayerInfo=cashdeposit+PlayerInfo;
SendClientMessage(playerid, COLOR_WHITE, "|___ BANK STATMENT ___|");
format(string, sizeof(string), " Old Balance: $%d", curfunds);
SendClientMessage(playerid, COLOR_GRAD2, string);
format(string, sizeof(string), " Deposit: $%d",cashdeposit);
SendClientMessage(playerid, COLOR_GRAD4, string);
SendClientMessage(playerid, COLOR_GRAD6, "|-----------------------------------------|");
format(string, sizeof(string), " New Balance: $%d", PlayerInfo);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
return 1;
}
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo != 103)
{
SendClientMessage(playerid, COLOR_GREY, " You are not at the Bank !");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /bank ");
format(string, sizeof(string), " You Have $%d in your account.", PlayerInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /bank ");
format(string, sizeof(string), " You Have $%d in your account.", PlayerInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
if (cashdeposit > GetPlayerMoney(playerid) || cashdeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " You dont have that much");
return 1;
}
GivePlayerMoney(playerid,-cashdeposit);
new curfunds = PlayerInfo;
PlayerInfo=cashdeposit+PlayerInfo;
SendClientMessage(playerid, COLOR_WHITE, "|___ BANK STATMENT ___|");
format(string, sizeof(string), " Old Balance: $%d", curfunds);
SendClientMessage(playerid, COLOR_GRAD2, string);
format(string, sizeof(string), " Deposit: $%d",cashdeposit);
SendClientMessage(playerid, COLOR_GRAD4, string);
SendClientMessage(playerid, COLOR_GRAD6, "|-----------------------------------------|");
format(string, sizeof(string), " New Balance: $%d", PlayerInfo);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
return 1;
}
Quote
4352.5649,-1537.4598,26.1698
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
218
Postovi:
32
Teme:
Pridružio se:Feb. 2010
22. Apr. 2010.
lumpri wrote on April 22, 2010, 4:52 pm:
Evo malih pitanja PLS odgovor
* Kako da maknem BAŠ SVA auta iz skripte i da sam stavljam nova
* Kako da na ovu komandu za enter stavim da me frezira na 2sec
edit
* Kako na ovu komandu dodat da s može samo u playertopoint 7.00 na određene kordinate
* Kako da maknem BAŠ SVA auta iz skripte i da sam stavljam nova
* Kako da na ovu komandu za enter stavim da me frezira na 2sec
Quote
else if (PlayerToPoint(8.0, playerid,1460.5590,-1011.8144,26.843😎)
{
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid,4365.4482,-1545.6127,26.169😎;
}
{
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid,4365.4482,-1545.6127,26.169😎;
}
edit
* Kako na ovu komandu dodat da s može samo u playertopoint 7.00 na određene kordinate
Quote
if(strcmp(cmd, "/bank", true) == 0 || strcmp(cmd, "/deposit", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo != 103)
{
SendClientMessage(playerid, COLOR_GREY, " You are not at the Bank !");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /bank ");
format(string, sizeof(string), " You Have $%d in your account.", PlayerInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /bank ");
format(string, sizeof(string), " You Have $%d in your account.", PlayerInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
if (cashdeposit > GetPlayerMoney(playerid) || cashdeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " You dont have that much");
return 1;
}
GivePlayerMoney(playerid,-cashdeposit);
new curfunds = PlayerInfo;
PlayerInfo=cashdeposit+PlayerInfo;
SendClientMessage(playerid, COLOR_WHITE, "|___ BANK STATMENT ___|");
format(string, sizeof(string), " Old Balance: $%d", curfunds);
SendClientMessage(playerid, COLOR_GRAD2, string);
format(string, sizeof(string), " Deposit: $%d",cashdeposit);
SendClientMessage(playerid, COLOR_GRAD4, string);
SendClientMessage(playerid, COLOR_GRAD6, "|-----------------------------------------|");
format(string, sizeof(string), " New Balance: $%d", PlayerInfo);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
return 1;
}
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo != 103)
{
SendClientMessage(playerid, COLOR_GREY, " You are not at the Bank !");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /bank ");
format(string, sizeof(string), " You Have $%d in your account.", PlayerInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /bank ");
format(string, sizeof(string), " You Have $%d in your account.", PlayerInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
if (cashdeposit > GetPlayerMoney(playerid) || cashdeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " You dont have that much");
return 1;
}
GivePlayerMoney(playerid,-cashdeposit);
new curfunds = PlayerInfo;
PlayerInfo=cashdeposit+PlayerInfo;
SendClientMessage(playerid, COLOR_WHITE, "|___ BANK STATMENT ___|");
format(string, sizeof(string), " Old Balance: $%d", curfunds);
SendClientMessage(playerid, COLOR_GRAD2, string);
format(string, sizeof(string), " Deposit: $%d",cashdeposit);
SendClientMessage(playerid, COLOR_GRAD4, string);
SendClientMessage(playerid, COLOR_GRAD6, "|-----------------------------------------|");
format(string, sizeof(string), " New Balance: $%d", PlayerInfo);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
return 1;
}
Quote
4352.5649,-1537.4598,26.1698
aute mices tako da ih obrises, u search meni upisi:
AddStaticVehiclei obrises sve sto pocinje sa AddStaticVehicle
za onaj freeze mislim da treba timer...
a za ovu banku...
if(strcmp(cmd, "/bank", true) == 0 || strcmp(cmd, "/deposit", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo != 103)
{
SendClientMessage(playerid, COLOR_GREY, " You are not at the Bank !");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /bank ");
format(string, sizeof(string), " You Have $%d in your account.", PlayerInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /bank ");
format(string, sizeof(string), " You Have $%d in your account.", PlayerInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
if (cashdeposit > GetPlayerMoney(playerid) || cashdeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " You dont have that much");
return 1;
}
GivePlayerMoney(playerid,-cashdeposit);
new curfunds = PlayerInfo;
PlayerInfo=cashdeposit+PlayerInfo;
SendClientMessage(playerid, COLOR_WHITE, "|___ BANK STATMENT ___|");
format(string, sizeof(string), " Old Balance: $%d", curfunds);
SendClientMessage(playerid, COLOR_GRAD2, string);
format(string, sizeof(string), " Deposit: $%d",cashdeposit);
SendClientMessage(playerid, COLOR_GRAD4, string);
SendClientMessage(playerid, COLOR_GRAD6, "|-----------------------------------------|");
format(string, sizeof(string), " New Balance: $%d", PlayerInfo);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
return 1;
}izmijeni
if(PlayerInfo != 103)sa
if(PlayerToPoint(2, playerid,x,y,z))Godfather
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
2,231
Postovi:
45
Teme:
Pridružio se:Jun 2009
22. Apr. 2010.
lumpri wrote on April 22, 2010, 4:52 pm:
else if (PlayerToPoint(8.0, playerid,1460.5590,-1011.8144,26.843😎)
{
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid,4365.4482,-1545.6127,26.169😎;
}
{
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid,4365.4482,-1545.6127,26.169😎;
}
Dodaš ovo negdje izmedu komande
TogglePlayerControllable(playerid, 1);
ali moras i timere postavit...
Kingpin
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,007
Postovi:
12
Teme:
Pridružio se:Nov. 2009
22. Apr. 2010.
°|Chris|° wrote on April 22, 2010, 4:52 pm:
else if (PlayerToPoint(8.0, playerid,1460.5590,-1011.8144,26.843😎)
{
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid,4365.4482,-1545.6127,26.169😎;
}
{
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid,4365.4482,-1545.6127,26.169😎;
}
Dodaš ovo negdje izmedu komande
TogglePlayerControllable(playerid, 1);
ali moras i timere postavit...
ili ne? :S:..
TogglePlayerControllable(playerid, 0);...
to je za freezanje...
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
287
Postovi:
64
Teme:
Pridružio se:Dec. 2009
22. Apr. 2010.
evo hvala za banku sam uspio napravit
na kolko dugo 😕 meni treba na 2 sec samo kako to postavit
Quote
ili ne? :S:..
TogglePlayerControllable(playerid, 0);...
to je za freezanje...
TogglePlayerControllable(playerid, 0);...
to je za freezanje...
na kolko dugo 😕 meni treba na 2 sec samo kako to postavit
Godfather
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
2,231
Postovi:
45
Teme:
Pridružio se:Jun 2009
22. Apr. 2010.
lumpri wrote on April 22, 2010, 6:40 pm:
evo hvala za banku sam uspio napravit
na kolko dugo 😕 meni treba na 2 sec samo kako to postavit
Quote
ili ne? :S:..
TogglePlayerControllable(playerid, 0);...
to je za freezanje...
TogglePlayerControllable(playerid, 0);...
to je za freezanje...
na kolko dugo 😕 meni treba na 2 sec samo kako to postavit
To ti je freezabhe 4ever dok ne upises unfreeze zato moras timer sloziti
Hustler
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
94
Postovi:
5
Teme:
Pridružio se:Maj 2009
22. Apr. 2010.
poslozi timer ovako:
ovo je vrlo jednostavno....
forward imetimera(playerid);
public imetimera(playerid)
{
TogglePlayerControllable(playerid, 1);
return 1;
}
//ovo stavi tamo gdje radis nesto sa komandom a zelis da te freeza
TogglePlayerControllable(playerid, 0);
SetTimerEx("imetimera",2000,false,"i",playerid);ovo je vrlo jednostavno....
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
287
Postovi:
64
Teme:
Pridružio se:Dec. 2009
22. Apr. 2010.
evo malo san njubast xD uspio sam ovo s timerom za nešto šta sam ja radio ali kako to isto anpravit za bizz ( nema kordinata u game modu nego su u script files mapi ) zapravo je to ulaz u banku
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava