Advertisement
Guest User

Untitled

a guest
Aug 8th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. //comanda
  2.  
  3. CMD:spawnchange(playerid, params[]) return ShowPlayerDialog( playerid, DIALOG_SPAWNCHANGE, DIALOG_STYLE_LIST, "Spawn change:", "HQ/Spawn\nCasa\nApartament", "Ok", "Cancel" );
  4.  
  5. //dialog
  6.  
  7. case DIALOG_SPAWNCHANGE: {
  8. if( !response ) return true;
  9. switch( listitem ) {
  10. case 1: { if( PlayerInfo[ playerid ][ pPhousekey ] == 999 ) return SCM( playerid, -1, "Nu ai o casa." ); PlayerInfo[playerid][pSpawnChange] = 1; }
  11. case 2: { if( have_apartment( playerid ) == -1 ) return SCM( playerid, -1, "Nu ai un apartament." ); PlayerInfo[playerid][pSpawnChange] = 2; }
  12. } Update(playerid, pSpawnChangex); SCM( playerid, COLOR_YELLOW, "Ai schimbat spawnul cu succes." );
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement