[AJUDA] Proibir passageiro.
#1

Gostaria de saber como faz pra proibir o passageiro de usar o comando dentro do carro.

pawn Код:
//-----------------------------[DESVIRAR CARROS]--------------------------------
    if(strcmp(cmdtext, "/desvirar", true) == 0)
    {
    new Float:X, Float:Y, Float:Z;
    if(IsPlayerInAnyVehicle(playerid))
    SetCameraBehindPlayer(playerid);
    GetPlayerPos(playerid, X, Y, Z);
    SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);
    SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
    SendClientMessage(playerid,COR_CINZAC,"{00B3FF}INFO:{FFFFFF} Carro desvirado com sucesso.");
    return 1;
}
Reply
#2

GetPlayerState.
Reply
#3

pawn Код:
if(IsPlayerInAnyVehicle(playerid)) return true;
Edit:
Falta de atenзгo da minha parte.
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
Reply
#4

Josma Ta Com Tudo Hj KKKKK

Josma nao seria assim
pawn Код:
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,-1,"Texto");
@edit Fui Junto Com o Josma e errei KKK Mas Ta Na Boa
Reply
#5

Quote:
Originally Posted by Don_Speed
Посмотреть сообщение
Josma Ta Com Tudo Hj KKKKK

Josma nao seria assim
pawn Код:
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,-1,"Texto");
kkkkkkkkkkkkkkk. Й, nгo sei o que me deu.
Bom, nгo seria nem da forma que vocк mandou nem da forma que eu mandei, e sim como o Gustavo mandou, dei edit no meu post. ^^
Reply
#6

Quote:
Originally Posted by Josma_cmd
Посмотреть сообщение
kkkkkkkkkkkkkkk. Й, nгo sei o que me deu.
Bom, nгo seria nem da forma que vocк mandou nem da forma que eu mandei, e sim como o Gustavo mandou, dei edit no meu post. ^^
Errar e Humano HeHe

@Off Vo Dormi que Amanha Tem Aula!
Reply
#7

Quote:
Originally Posted by Josma_cmd
Посмотреть сообщение
pawn Код:
if(IsPlayerInAnyVehicle(playerid)) return true;
Edit:
Falta de atenзгo da minha parte.
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
Valeu ...
Muito obrigado!
Reply
#8

Quote:
Originally Posted by Victor Martins
Посмотреть сообщение
Valeu ...
Muito obrigado!
Agradeзa ao Gustavo.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)