destroy your car with a command?
#7

I added some more to it, but i get 1 error.

This is what i have now.
pawn Код:
CMD:suicide(playerid, params[])
{
            if(gTeam[playerid] == T_IRAQ && PLAYER_STATE_DRIVER)
        {
            return DestroyVehicle(GetPlayerVehicleID(playerid));
        }
        else return SendClientMessage(playerid, 0xFF0000FF, "You must be a Taliban to use this command.");
    }
    else return SendClientMessage(playerid, 0xFF0000FF, "You must be a in a vehicle");
}

1 error.
pawn Код:
error 010: invalid function or declaration

This is the line:
pawn Код:
else return SendClientMessage(playerid, 0xFF0000FF, "You must be a Taliban to use this command.");
    }
    else return SendClientMessage(playerid, 0xFF0000FF, "You must be in a vehicle");
}
Reply


Messages In This Thread
destroy your car with a command? - by Eminem 2ka9 - 18.03.2013, 13:41
Re: destroy your car with a command? - by Misiur - 18.03.2013, 13:43
Re: destroy your car with a command? - by Konstantinos - 18.03.2013, 13:44
Re: destroy your car with a command? - by Eminem 2ka9 - 18.03.2013, 14:01
Re: destroy your car with a command? - by Eminem 2ka9 - 18.03.2013, 14:54
Re: destroy your car with a command? - by Scenario - 18.03.2013, 14:55
Re: destroy your car with a command? - by Eminem 2ka9 - 18.03.2013, 15:11
Re: destroy your car with a command? - by Eminem 2ka9 - 18.03.2013, 15:27
Re: destroy your car with a command? - by Misiur - 18.03.2013, 15:29
Re: destroy your car with a command? - by Eminem 2ka9 - 18.03.2013, 15:39

Forum Jump:


Users browsing this thread: 1 Guest(s)