Tri mala pitanja

Započeo Lumpri77
22. Apr. 2010.
1,527
pregleda
9
postova
lumpri
4
Enforcer
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
Quote
else if (PlayerToPoint(8.0, playerid,1460.5590,-1011.8144,26.843😎)
{
   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;
}


Quote
4352.5649,-1537.4598,26.1698
Haris Hadzic
4
Enforcer
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
Quote
else if (PlayerToPoint(8.0, playerid,1460.5590,-1011.8144,26.843😎)
{
    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;
}


Quote
4352.5649,-1537.4598,26.1698


aute mices tako da ih obrises, u search meni upisi:
AddStaticVehicle


i 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))
Chris
5
Godfather
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😎;
}

Dodaš ovo negdje izmedu komande
TogglePlayerControllable(playerid, 1);
ali moras i timere postavit...
Sam
5
Kingpin
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😎;
}

Dodaš ovo negdje izmedu komande
TogglePlayerControllable(playerid, 1);
ali moras i timere postavit...

ili ne? :S:..
TogglePlayerControllable(playerid, 0);...
to je za freezanje...
lumpri
4
Enforcer
22. Apr. 2010.
evo hvala za banku sam uspio napravit

Quote
ili ne? :S:..
TogglePlayerControllable(playerid, 0);...
to je za freezanje...


na kolko dugo 😕 meni treba na 2 sec samo kako to postavit
Chris
5
Godfather
22. Apr. 2010.
lumpri wrote on April 22, 2010, 6:40 pm:
evo hvala za banku sam uspio napravit

Quote
ili ne? :S:..
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
lumpri
4
Enforcer
22. Apr. 2010.
Quote
To ti je freezabhe 4ever dok ne upises unfreeze zato moras timer sloziti


pad aj pls objasni kako ču to složit
Tomek
3
Hustler
22. Apr. 2010.
poslozi timer ovako:
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....
lumpri
4
Enforcer
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

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha