[DUV Simples] Achar codigo.
#6

pawn Код:
if(strcmp("/baseheli", cmdtext, true, 10) == 0)
{
    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER || !IsPlayerInVehicle(playerid, heli))
        return SendClientMessage(playerid, -1, "  Vocк precisa estar dentro do heli !");

    tmp = strtok(cmdtext, idx);
    if(IsPlayerInAnyVehicle(playerid) == 0)
        return SendClientMessage(playerid, -1, "  Vocк Nao pode digitar esse comando sendo o piloto !");

    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    tmp = strtok(cmdtext, idx);
    if(Z > 30.4057)
        return RemovePlayerFromVehicle(playerid);

    AttachObjectToVehicle(base, heli, -1.350097, -0.400024, -0.500000, 270.0, 180.0, 180.0);
    SendClientMessage(playerid, COLOR_WHITE, "Vocк Pode atirar do Heli agora.");

    return 1;
}

if(strcmp("/tirabase", cmdtext, true, 10) == 0)
{
    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER || !IsPlayerInVehicle(playerid, heli))
        return SendClientMessage(playerid, -1, "  Vocк precisa estar dentro do heli !");

    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    if(Z > 30.4057)
        return PutPlayerInVehicle(playerid, heli, 0);

    AttachObjectToVehicle(base, 0, -1.350097, -0.400024, -0.500000, 270.0, 180.0, 180.0);

    return 1;
}
Reply


Messages In This Thread
[DUV Simples] Achar codigo. - by atsbs - 01.12.2011, 18:46
Re: [DUV Simples] Achar codigo. - by Kuddy - 01.12.2011, 18:52
Re: [DUV Simples] Achar codigo. - by atsbs - 01.12.2011, 19:08
Re: [DUV Simples] Achar codigo. - by ViniBorn - 01.12.2011, 19:27
Re: [DUV Simples] Achar codigo. - by atsbs - 01.12.2011, 19:31
Re: [DUV Simples] Achar codigo. - by ViniBorn - 01.12.2011, 19:45
Re: [DUV Simples] Achar codigo. - by atsbs - 01.12.2011, 19:50
Re: [DUV Simples] Achar codigo. - by dPlaYer_ - 01.12.2011, 19:59
Re: [DUV Simples] Achar codigo. - by GabrielDias_Invision - 01.12.2011, 20:05
Re: [DUV Simples] Achar codigo. - by atsbs - 01.12.2011, 20:06

Forum Jump:


Users browsing this thread: 2 Guest(s)