Skip to content

Commit

Permalink
Merge pull request #198 from messore/patch-9
Browse files Browse the repository at this point in the history
ajout demander un appartement
  • Loading branch information
kossolax committed Dec 1, 2015
2 parents 4062f71 + 2bae2a7 commit 0060a93
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utils/roleplay_voice.sp
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,11 @@ public int MenuJobs2(Handle p_hItemMenu, MenuAction p_oAction, int client, int p
AddMenuItem(menu, tmp2, "Demander pour une audience");
amount++;
}
if(jobid == 61){
+ Format(tmp2, sizeof(tmp2), "%i_-6", target);
+ AddMenuItem(menu, tmp2, "Demander un Appartement");
+ amount++;
+ }
else{
for(int i=1;i<MAX_ITEMS;i++){
rp_GetItemData(i, item_type_job_id, tmp, sizeof(tmp));
Expand Down Expand Up @@ -425,6 +430,7 @@ public int MenuJobs3(Handle p_hItemMenu, MenuAction p_oAction, int client, int p
case -3: CPrintToChat(target, "{lightblue}[TSX-RP]{default} Le joueur %N aimerait acheter ou vendre une arme, il est actuellement: %s", client, zoneName);
case -4: CPrintToChat(target, "{lightblue}[TSX-RP]{default} Le joueur %N a besoin d'un juge, il est actuellement: %s", client, zoneName);
case -5: CPrintToChat(target, "{lightblue}[TSX-RP]{default} Le joueur %N a besoin d'un avocat, il est actuellement: %s", client, zoneName);
case -6: CPrintToChat(target, "{lightblue}[TSX-RP]{default} Le joueur %N souhaiterait acheter un appartement, merci de le contacter pour plus de renseignement. Il est actuellement: %s", client, zoneName);
default:{
rp_GetItemData(item_id, item_type_name, tmp, sizeof(tmp));
CPrintToChat(target, "{lightblue}[TSX-RP]{default} Le joueur %N a besoin de {lime}%s{default}, il est actuellement: %s", client, tmp, zoneName);
Expand Down

0 comments on commit 0060a93

Please sign in to comment.