Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //comanda
- CMD:spawnchange(playerid, params[]) return ShowPlayerDialog( playerid, DIALOG_SPAWNCHANGE, DIALOG_STYLE_LIST, "Spawn change:", "HQ/Spawn\nCasa\nApartament", "Ok", "Cancel" );
- //dialog
- case DIALOG_SPAWNCHANGE: {
- if( !response ) return true;
- switch( listitem ) {
- case 1: { if( PlayerInfo[ playerid ][ pPhousekey ] == 999 ) return SCM( playerid, -1, "Nu ai o casa." ); PlayerInfo[playerid][pSpawnChange] = 1; }
- case 2: { if( have_apartment( playerid ) == -1 ) return SCM( playerid, -1, "Nu ai un apartament." ); PlayerInfo[playerid][pSpawnChange] = 2; }
- } Update(playerid, pSpawnChangex); SCM( playerid, COLOR_YELLOW, "Ai schimbat spawnul cu succes." );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement