eee kako daa rjesim ovo kad ukucam cmd /deposit u banci pise mi " NIste u Banci"
CMD:deposit(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
if(!IsPlayerInRangeOfPoint(playerid, 1,1463.2192,-984.8523,22.8304))
{
SCM(playerid, COLOR_GREY, "* Niste u banci!");
return 1;
}
new string[128],sendername[MAX_PLAYER_NAME],cashdeposit;
GetPlayerName(playerid, sendername,sizeof(sendername));
if(sscanf(params,"d",cashdeposit)) return SCM(playerid, COLOR_GRAD2, "Koriscenje: /deposit [Iznos]");
if(cashdeposit > GetPlayerMoney(playerid) || cashdeposit < 1)
{
SCM(playerid, COLOR_GRAD2, " Nemate dovoljno novca");
return 1;
}
sredi kordinate ili povecaj radius ako su kordinate dobre
dee ajd napisi kako bi to uradio ....
if(!IsPlayerInRangeOfPoint(playerid, 1,1463.2192,-984.8523,22.8304))
ovo crveno je radius, povecaj ga pa probaj pisat komandu, a ako to ne pomaze, moras nove kordinate uzet, jer ove nisu tocne
mozes mi ti to rjesit..kako da promjenim koordinate..da budu tacne
Citat: Walkerâ,,¢. poslato Jun 09, 2013, 19:05:05 POSLE PODNE
mozes mi ti to rjesit..kako da promjenim koordinate..da budu tacne
udes u banku, i odes na mjestu gdje oces da ti se moze ta komanda kucat..
upises /save
i onda odes u mapu dokumenti
GTA San Andreas User Files/SAMP/ i otvoris ovaj fajl savedpositions
i unutra ces nac nesto ovako
AddPlayerClass(1,1654.1841,-1656.9114,22.5156,176.6556,0,0,0,0,0,0); //
ti samo uzmes x,y,z kordinate
a to su ove crveno oznacene
AddPlayerClass(1,1654.1841,-1656.9114,22.5156,176.6556,0,0,0,0,0,0); //
okee hvala !! ;)
eee nece opet sve sam uradioo i nece opet !!!
pokusaj ovako(radio sam kao da vise nemas dolje,kao da je samo to komanda sto si dao,neznam jel imas jos koji dio komande pa prilagodi ako imas):
CMD:deposit(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
if(!IsPlayerInRangeOfPoint(playerid, 5,1463.2192,-984.8523,22.8304))
{
new string[128],sendername[MAX_PLAYER_NAME],cashdeposit;
GetPlayerName(playerid, sendername,sizeof(sendername));
if(sscanf(params,"d",cashdeposit)) return SCM(playerid, COLOR_GRAD2, "Koriscenje: /deposit [Iznos]");
if(cashdeposit > GetPlayerMoney(playerid) || cashdeposit < 1) return SCM(playerid, COLOR_GRAD2, " Nemate dovoljno novca");
return 1;
}
SCM(playerid, COLOR_GREY, "* Niste u banci!");
}
return 1;
}