12.11.2011, 11:12
hi everyone,
how can i add timer (with logout/login registration) ? o this function.
I just wanna do to functions work that : ' you cant quit from you job, last: 6 hours.' so i want to players can join mod's jobs every 6 hours.
Sorry for my english..
how can i add timer (with logout/login registration) ? o this function.
I just wanna do to functions work that : ' you cant quit from you job, last: 6 hours.' so i want to players can join mod's jobs every 6 hours.
Sorry for my english..
Код:
if(strcmp(cmd, "/quitjob", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pJob] > 1) { { { SendClientMessage(playerid, COLOR_GREEN, "* You've quited your job successfully"); PlayerInfo[playerid][pJob] = 0; PlayerInfo[playerid][pChar] = 0; PlayerInfo[playerid][pContractTime] = 0; } } } else { SendClientMessage(playerid, COLOR_GREY, " You don't even have a Job !"); } }//not connected return 1; }