warning 209: function "GDialog_45123" should return a valueDeo skripte://
warning 209: function "GDialog_45123" should return a valuefDialog(9813) {
if( !response )
if( response ) {
new tmpcar = GetPlayerVehicleID( playerid );
if( GetPlayerState( playerid ) == 2 ) {
JBC_SetVehiclePos( tmpcar, aportInfo[ listitem ][ aportPos ][ 0 ], aportInfo[ listitem ][ aportPos ][ 1 ], aportInfo[ listitem ][ aportPos ][ 2 ] );
}
else
{
JBC_SetVehiclePos( playerid, aportInfo[ listitem ][ aportPos ][ 0 ], aportInfo[ listitem ][ aportPos ][ 1 ], aportInfo[ listitem ][ aportPos ][ 2 ] );
}
SetPlayerInterior( playerid, 0 );
SetPlayerVirtualWorld( playerid, 0 );
SCM(playerid,-1, "Uspesno ste se teleportovali do lokacije %s.", aportInfo[ listitem ][ aportName ]);
return 1;
}
}
fDialog(9814) {
if( !response )
if( response )
{
new id = -1, Float:PozX, Float:PozY, Float:PozZ, nameaport[ 50 ];
for( new a = 0; a < MAX_APORTS; a++ ) {
if( aportInfo[ a ][ aportCreated ] != 1 )
{
id = a;
break;
}
else continue;
}
if( id == -1 ) return SCM( playerid,-1,"Nema vise mesta za kreiranje Admin TEAM portova." );
if( sscanf( inputtext, "s", nameaport ) ) return SPD( playerid, 43213, DSI, "Test", "Unesite ime ovog mesta za Admin TEAM port.", "da", "ne" );
GetPlayerPos( playerid, PozX, PozY, PozZ );
aportInfo[ id ][ aportID ] = id;
aportInfo[ id ][ aportCreated ] = 1;
aportInfo[ id ][ aportPos ][ 0 ] = PozX;
aportInfo[ id ][ aportPos ][ 1 ] = PozY;
aportInfo[ id ][ aportPos ][ 2 ] = PozZ;
strmid( aportInfo[ id ][ aportName ], nameaport, 0, strlen( nameaport ), 50 );
SaveAports( );
SCM( playerid,-1,"Uspesno si kreirao novu lokaciju za Admin TEAM port." );
return 1;
}
}fDialog(9813) {
if( !response )
if( response ) {
new tmpcar = GetPlayerVehicleID( playerid );
if( GetPlayerState( playerid ) == 2 ) {
JBC_SetVehiclePos( tmpcar, aportInfo[ listitem ][ aportPos ][ 0 ], aportInfo[ listitem ][ aportPos ][ 1 ], aportInfo[ listitem ][ aportPos ][ 2 ] );
}
else
{
JBC_SetVehiclePos( playerid, aportInfo[ listitem ][ aportPos ][ 0 ], aportInfo[ listitem ][ aportPos ][ 1 ], aportInfo[ listitem ][ aportPos ][ 2 ] );
}
SetPlayerInterior( playerid, 0 );
SetPlayerVirtualWorld( playerid, 0 );
SCM(playerid,-1, "Uspesno ste se teleportovali do lokacije %s.", aportInfo[ listitem ][ aportName ]);
return 1;
}
}
fDialog(9814) {
if( !response )
if( response )
{
new id = -1, Float:PozX, Float:PozY, Float:PozZ, nameaport[ 50 ];
for( new a = 0; a < MAX_APORTS; a++ ) {
if( aportInfo[ a ][ aportCreated ] != 1 )
{
id = a;
break;
}
else continue;
}
if( id == -1 ) return SCM( playerid,-1,"Nema vise mesta za kreiranje Admin TEAM portova." );
if( sscanf( inputtext, "s", nameaport ) ) return SPD( playerid, 43213, DSI, "Test", "Unesite ime ovog mesta za Admin TEAM port.", "da", "ne" );
GetPlayerPos( playerid, PozX, PozY, PozZ );
aportInfo[ id ][ aportID ] = id;
aportInfo[ id ][ aportCreated ] = 1;
aportInfo[ id ][ aportPos ][ 0 ] = PozX;
aportInfo[ id ][ aportPos ][ 1 ] = PozY;
aportInfo[ id ][ aportPos ][ 2 ] = PozZ;
strmid( aportInfo[ id ][ aportName ], nameaport, 0, strlen( nameaport ), 50 );
SaveAports( );
SCM( playerid,-1,"Uspesno si kreirao novu lokaciju za Admin TEAM port." );
return 1;
}
}Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava