08.06.2013, 20:35
pawn Код:
public job_setJob(playerid, jobid)
{
new string[MAX_STRING_MSG],jobNameNow[LITTLE_STRING],jobNameFut[LITTLE_STRING],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
job_getname(jobid,jobNameFut);
job_getname(PlayerInfo[playerid][pJob],jobNameNow);
pay_tempArticle[playerid] = jobid;
if(PlayerInfo[playerid][pJob] == 0) format(string, sizeof(string), "Vous souhaitez devenir %s. \nVoulez vous prendre le job ?",jobNameFut);
else format(string, sizeof(string), "En ce moment vous travailler en tant que %s \nMais si vous le souhaitez vous pouvez devenir %s. \nVoulez vous prendre le job ?",jobNameNow,jobNameFut);
ShowPlayerDialog(playerid,14,DIALOG_STYLE_MSGBOX,"Contrat",string,"Prendre","Refuser");
format(proxy_msg,sizeof(proxy_msg),"%s prend le contrat et l'observe.",name);
proxy_sendMsg(playerid,proxy_msg);
return true;
}