Započeo [IF] mariomako
•29. Jun 2010./quitjob pomoc
949
pregleda
3
postova
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
618
Postovi:
155
Teme:
Pridružio se:Apr. 2010
29. Jun 2010.
zz, imam gf mod i nece mi raditi /quitjob sve mi zove imate da radite jos 0 sati i nece mi dati otkaz evo komande i kako da napravim cim upisem tu komandu automatski mi prekine posao bez razliku dali imam odraboteno ili ne?
if(strcmp(cmd, "/quitjob", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo > 0)
{
if(PlayerInfo > 0)
{
if(PlayerInfo >= 2)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You already forfilled your 1 hour Contract, and quited your Job.");
PlayerInfo = 0;
PlayerInfo = 0;
PlayerInfo = 0;
}
else
{
new chours = 2 - PlayerInfo;
format(string, sizeof(string), "* You still have %d hours left to forfill and end your Contract.", chours / 2);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
else
{
if(PlayerInfo >= 10)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You already forfilled your 5 hour Contract, and quited your Job.");
PlayerInfo = 0;
PlayerInfo = 0;
PlayerInfo = 0;
}
else
{
new chours = 10 - PlayerInfo;
format(string, sizeof(string), "* You still have %d hours left to forfill and end your Contract.", chours / 2);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You don't even have a Job !");
}
}//not connected
return 1;
}
edit: napravio sam ovo
if(strcmp(cmd, "/quitjob", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo > 0)
{
if(PlayerInfo > 0)
{
if(PlayerInfo >= 2)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You already forfilled your 1 hour Contract, and quited your Job.");
PlayerInfo = 0;
PlayerInfo = 0;
PlayerInfo = 0;
}
else
{
new chours = 2 - PlayerInfo;
format(string, sizeof(string), "* You still have %d hours left to forfill and end your Contract.", chours / 2);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
else
{
if(PlayerInfo >= 10)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You already forfilled your 5 hour Contract, and quited your Job.");
PlayerInfo = 0;
PlayerInfo = 0;
PlayerInfo = 0;
}
else
{
new chours = 10 - PlayerInfo;
format(string, sizeof(string), "* You still have %d hours left to forfill and end your Contract.", chours / 2);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You don't even have a Job !");
}
}//not connected
return 1;
}
edit: napravio sam ovo
if(strcmp(cmd, "/quitjob", true)== 0)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Uspesno dadovte otkaz i poveke nemate rabota.");
PlayerInfo = 0;
} jel ce samo mene oduzet posao ili na svi online igraci?Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
447
Postovi:
40
Teme:
Pridružio se:Dec. 2009
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
618
Postovi:
155
Teme:
Pridružio se:Apr. 2010
29. Jun 2010.
Quote from June 29, 2010, 12:58 pm:
Maknut ce posao onome koji upise /quitjob..
aha skontao sam xD mislim da je to jel ima playerid moze LOCK
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava