Dio skripte:
CMD:getcar( playerid, params[] ) {
if( PlayerInfo[ playerid ][ xHelper ] >= 1 || PlayerInfo[ playerid ][ xVIPLevel ] >= 1 ) {
new idslota = PlayerInfo[ 0 ] || PlayerInfo[ 1 ] || PlayerInfo[ 2 ] || PlayerInfo[ 3 ] || PlayerInfo[ 4 ];
if( strcmp( ImeIgraca( playerid ), VehicleInfo[ PlayerInfo[ playerid ][ xVoziloID ][ 0 ] ][ vOwner ], true ) == 0 ) return GRESKA( playerid, ""col_chating"Samo svoja vozila" );
if( strcmp( ImeIgraca( playerid ), VehicleInfo[ PlayerInfo[ playerid ][ xVoziloID ][ 1 ] ][ vOwner ], true ) == 0 ) return GRESKA( playerid, ""col_chating"Samo svoja vozila" );
if( strcmp( ImeIgraca( playerid ), VehicleInfo[ PlayerInfo[ playerid ][ xVoziloID ][ 2 ] ][ vOwner ], true ) == 0 ) return GRESKA( playerid, ""col_chating"Samo svoja vozila" );
if( strcmp( ImeIgraca( playerid ), VehicleInfo[ PlayerInfo[ playerid ][ xVoziloID ][ 3 ] ][ vOwner ], true ) == 0 ) return GRESKA( playerid, ""col_chating"Samo svoja vozila" );
if( strcmp( ImeIgraca( playerid ), VehicleInfo[ PlayerInfo[ playerid ][ xVoziloID ][ 4 ] ][ vOwner ], true ) == 0 ) return GRESKA( playerid, ""col_chating"Samo svoja vozila" );
if( sscanf( params, "i", idslota ) ) {
SendUsageMessage( playerid, "/getcar [id slota]");
return 1;
}
new Float:plocx, Float:plocy, Float:plocz;
GetPlayerPos( playerid, plocx, plocy, plocz );
SetVehiclePos( idslota, plocx, plocy+4, plocz );
}
else return GRESKA( playerid, ""col_chating"You are not authorized." );
return 1;
}Slika/video ingame problema(obavezno ako je ingame problem): ne treba
