Ajuda com COD
#9

pawn Код:
new teste = 3;
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 67 && response == 1)
{

if(Teste >= 1) // Serб executado
    print("1");
{
        if(IsPlayerInAnyVehicle(playerid) == 1) {
        SetPlayerInterior(playerid, 0);
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
        SetVehiclePos(GetPlayerVehicleID(playerid),-364.7623,1532.6614,75.3594);
        SetVehicleZAngle(GetPlayerVehicleID(playerid), 256.9824);
        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
        } else {
        RemovePlayerFromVehicle(playerid);
        SetPlayerPos(playerid,-364.7623,1532.6614,75.3594);
        SetPlayerFacingAngle(playerid, 256.9824);
        SetCameraBehindPlayer(playerid);
        }
        } else {
        SetPlayerPos(playerid,-364.7623,1532.6614,75.3594);
        SetPlayerFacingAngle(playerid, 256.9824);
        SetCameraBehindPlayer(playerid);
        SetPlayerInterior(playerid, 0);
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        ResetPlayerWeapons(playerid);
    }

if(Teste >= 2) // Serб executado
    print("2");
{
        if(IsPlayerInAnyVehicle(playerid) == 1) {
        SetPlayerInterior(playerid, 0);
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
        SetVehiclePos(GetPlayerVehicleID(playerid),1255.3643,-2033.8282,59.5524);
        SetVehicleZAngle(GetPlayerVehicleID(playerid), 268.9283);
        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
        } else {
        RemovePlayerFromVehicle(playerid);
        SetPlayerPos(playerid,1255.3643,-2033.8282,59.5524);
        SetPlayerFacingAngle(playerid, 268.9283);
        SetCameraBehindPlayer(playerid);
        }
        } else {
        SetPlayerPos(playerid,1255.3643,-2033.8282,59.5524);
        SetPlayerFacingAngle(playerid, 268.9283);
        SetCameraBehindPlayer(playerid);
        SetPlayerInterior(playerid, 0);
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        ResetPlayerWeapons(playerid);
    }

if(Teste >= 3) // Serб executado
    print("3");
{
        if(IsPlayerInAnyVehicle(playerid) == 1) {
        SetPlayerInterior(playerid, 0);
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
        SetVehiclePos(GetPlayerVehicleID(playerid),2262.9102,1398.5728,42.8203);
        SetVehicleZAngle(GetPlayerVehicleID(playerid), 267.6750);
        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
        } else {
        RemovePlayerFromVehicle(playerid);
        SetPlayerPos(playerid,2262.9102,1398.5728,42.8203);
        SetPlayerFacingAngle(playerid, 267.6750);
        SetCameraBehindPlayer(playerid);
        }
        } else {
        SetPlayerPos(playerid,2262.9102,1398.5728,42.8203);
        SetPlayerFacingAngle(playerid, 267.6750);
        SetCameraBehindPlayer(playerid);
        SetPlayerInterior(playerid, 0);
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        ResetPlayerWeapons(playerid);
                    }
    }
Assim?
Reply


Messages In This Thread
Ajuda com COD - by Victos_xd - 05.08.2011, 16:28
Re: Ajuda com COD - by ViniBorn - 05.08.2011, 16:31
Re: Ajuda com COD - by Victos_xd - 05.08.2011, 16:34
Re: Ajuda com COD - by ViniBorn - 05.08.2011, 16:37
Re: Ajuda com COD - by Victos_xd - 05.08.2011, 16:39
Re: Ajuda com COD - by Victos_xd - 05.08.2011, 16:42
Re: Ajuda com COD - by ViniBorn - 05.08.2011, 17:01
Re: Ajuda com COD - by Victos_xd - 05.08.2011, 17:27
Re: Ajuda com COD - by Victos_xd - 05.08.2011, 17:40
Re: Ajuda com COD - by Miqueias Barros - 05.08.2011, 18:02

Forum Jump:


Users browsing this thread: 5 Guest(s)