[Ajuda] Nome
#1

Olб, Eu tentei colocar pra quando o admin criar um vйiculo aparecesse o nome dele, porйm nгo da certo, Nгo aparece nada.

Код:
	if( !strcmp( cmd, "/Cv", true ) || !strcmp( cmd, "/cv", true ))
	{
        if( aInfo[ playerid ][ Admin ] == 1 || aInfo[ playerid ][ Gerente ] == 1 )
        {
            tmp = strtok( cmdtext, idx );
            if( !strlen( tmp ))
            {
				SendClientMessage( playerid, COLOR_ERRO, "[ x ] Uso correto: /Cv [ ID ou Nome ] [ Cor1 ] [ Cor2 ]" );
				return 1;
            }
            if( ParticipandoEvento[ playerid ] == 1 || epDM[ playerid ][ dmParticipando ] == 1 )
			{
			    SendClientMessage( playerid, COLOR_ERRO, "[ x ] Vocк nгo pode criar veiculos no evento!" );
				return 1;
			}
			new
				veiculo = GetVehicleModelID( tmp )
			;
			if( veiculo == -1 )
			{
				veiculo = strval( tmp );
                if( veiculo < 400 || veiculo > 611 )
                {
			        SendClientMessage( playerid, COLOR_ERRO, "[ x ] Somente ID de 400 а 611 !" );
				    return 1;
				}
            }
            tmp = strtok( cmdtext, idx );
            if( !strlen( tmp ))
            {
				SendClientMessage( playerid, COLOR_ERRO, "[ x ] Uso correto: /Cv [ ID ou Nome ] [ Cor1 ] [ Cor2 ]" );
				return 1;
            }
			new
				cor1 = strval( tmp )
			;
            tmp = strtok( cmdtext, idx );
            if( !strlen( tmp ))
            {
				SendClientMessage( playerid, COLOR_ERRO, "[ x ] Uso correto: /Cv [ ID ou Nome ] [ Cor1 ] [ Cor2 ]" );
				return 1;
            }
            new
				cor2 = strval( tmp )
			;
			new
				Float:x, Float:y, Float:z, Float:a
			;
			GetPlayerPos( playerid, x, y, z );
			GetPlayerFacingAngle( playerid, a );
			vehid = CreateVehicle( veiculo, x, y, z, a, cor1, cor2, -1 );
			LinkVehicleToInterior( vehid, GetPlayerInterior( playerid ));
			PutPlayerInVehicle( playerid, vehid, 0 );
			new s[50],n[24];
			GetPlayerName(playerid, n, 24);
			format(s, 50, "Veiculo de %s [%d]", n, playerid);
			textdrr = Create3DTextLabel(s, -1, 0.0, 0.0, 0.0, 30.0, 0, 1 );
			Attach3DTextLabelToVehicle( textdrr, Vehicle[playerid], 0.0, 0.0, 2.0);
            PlayerPlaySound( playerid, 1133, 0.0, 0.0, 0.0 );
            format( string, sizeof( string ), "[ NVL Admin ] Veнculo %s criado com sucesso {FF0000}( NГO ESQUEЗA DE EXCLUIR )!", vNome[ GetVehicleModel( vehid ) - 400 ] );
            SendClientMessage( playerid, 0x00FF66AA, string );
        }
		return 1;
	}
Reply


Messages In This Thread
Nome - by Sti - 04.03.2015, 18:07
Re: Nome - by MarlboroBr - 04.03.2015, 18:31
Re: Nome - by FStralioti - 04.03.2015, 18:54
Re : Nome - by Sti - 04.03.2015, 22:21
Re: Nome - by Cidiei - 04.03.2015, 22:47
Re : Nome - by Sti - 04.03.2015, 23:44
Re: Nome - by arakuta - 05.03.2015, 01:39

Forum Jump:


Users browsing this thread: 1 Guest(s)