- 0
Problema /quitjob
-
Similar Content
-
- 0 replies
- 3.928 views
-
- 54 replies
- 22.746 views
-
- 70 replies
- 34.724 views
-
- 28 replies
- 6.983 views
-
Gamemode SMALL edit burned v0.1(pornit de la gamemode-ul big edit burned CosminAK47). 1 2
By Radutz,
- 27 replies
- 7.671 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.

Question
Balvin[]
Am comanda asta si doresc sa o trec pe zcmd am include tot dar cum o fac.
if(strcmp(cmd, "/quitjob", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] != 0)
{
if(PlayerInfo[playerid][pJob] > 0)
{
if(PlayerInfo[playerid][pDonateRank] > 0)
{
if(PlayerInfo[playerid][pContractTime] >= 0)
{
SendClientMessage(playerid, -1, "* You already forfilled your 1 hour Contract, and quited your Job.");
PlayerInfo[playerid][pJob] = 0;
PlayerInfo[playerid][pChar] = 0;
PlayerInfo[playerid][pContractTime] = 0;
}
else
{
new chours = 2 - PlayerInfo[playerid][pContractTime];
format(string, sizeof(string), "* You still have %d hours left to forfill and end your Contract.", chours / 2);
SendClientMessage(playerid, -1, string);
}
}
else
{
if(PlayerInfo[playerid][pContractTime] >= 10)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You already forfilled your 5 hour Contract, and quited your Job.");
PlayerInfo[playerid][pJob] = 0;
PlayerInfo[playerid][pChar] = 0;
PlayerInfo[playerid][pContractTime] = 0;
}
else
{
new chours = 10 - PlayerInfo[playerid][pContractTime];
format(string, sizeof(string), "* You still have %d hours left to forfill and end your Contract.", chours / 2);
SendClientMessage(playerid, -1, string);
}
}
}
else
{
SendClientMessage(playerid, -1, ""ALBASTRU2"Nu ai nici un job !");
return 1;
}
}
else
{
SendClientMessage(playerid, -1, ""ALBASTRU2"Nu esti conectat !");
return 1;
}
}
return 1;
}
Si vreau cand dai /quitjob sa nu mai ramana 5 ore pana sa imi expire ca nu gasesc orele alea 5. Multumesc
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now