[Ajuda] Converter comando.
#3

PHP код:
 CMD:ejetarplayer(playeridparams[])
    {
        new 
playaPName[MAX_PLAYER_NAME], giveplayer[MAX_PLAYER_NAME], string[256];

        if(
sscanf(params"u"playa))
            return 
SendClientMessage(playerid, -1"Uso: /ejetarplayer [playerid/nick]");

        if(
GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
            return 
SendClientMessage(playerid,-1,"   Vocк nгo й o motorista do carro !");

        if(
playa == INVALID_PLAYER_ID || playa == playerid)
            return 
SendClientMessage(playerid, -1" ID/Nick - Invalido!");

        if(!
IsPlayerInVehicle(playa,GetPlayerVehicleID(playerid)))
            return 
SendClientMessage(playerid, -1"   Este jogador nгo estб em seu carro !");

        
GetPlayerName(playerid,PName,sizeof(PName));
        
GetPlayerName(playagiveplayersizeof(giveplayer));
        
format(stringsizeof(string), "* Vocк expulsou o(a) %s para fora do carro!"giveplayer);
        
SendClientMessage(playerid, -1string);
        
format(stringsizeof(string), "* Vocк foi retirado do carro por %s !"PName);
        
SendClientMessage(playa, -1string);
        
RemovePlayerFromVehicle(playa);

        return 
true;
    } 
Plugin sscanf: https://sampforum.blast.hk/showthread.php?tid=570927
Reply


Messages In This Thread
Converter comando. - by Username1234 - 17.05.2015, 22:01
Re: Converter comando. - by LockedLucas - 17.05.2015, 22:05
Re: Converter comando. - by GabrielDias_Invision - 17.05.2015, 23:15

Forum Jump:


Users browsing this thread: 3 Guest(s)