Restricted Vehicle Trouble?
#6

Quote:
Originally Posted by Firez
Посмотреть сообщение
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new state = GetPlayerState(playerid);
    new vid = GetPlayerVehicleID(playerid);
    if(state == PLAYER_STATE_DRIVER)
    {
        for(new i = 0; i < sizeof(sapd); i++)
        {
            if(OrgId[playerid] != 1 && vid == sapd[i]])
            {
            RemovePlayerFromVehicle(playerid);
            SendClientMessage(playerid,red,"This Is For Organization 1 Online");
            }
        }
    }
    return 1;
}
tee do what i did for weaponz below here
pawn Код:
new Float:RVPositions[5][5] = {
    {520,-1438.48168945,-932.98889160,202.38511658,270.00000000},//modelid,x,y,z,angle
    {520,-1452.54101562,-926.71038818,202.62852478,270.00000000},
    {520,-1461.35107422,-917.00463867,203.01586914,270.00000000},
    {520,-1445.40063477,-916.93469238,203.06689453,270.00000000},
    {520,-1433.76928711,-922.97772217,202.83015442,270.00000000}
};
new restrictedvehicle[5];
public OnGameModeInit()
{
    for(new i = 0; i < sizeof(restrictedvehicle); i++)
    {
        restrictedvehicle[i] = CreateVehicle(RVPositions[i][0], RVPositions[i][1], RVPositions[i][2],RVPositions[i][3],RVPositions[i][4],-1,-1,120); //Hydra
    }
    return 1;
}
I use all that code?
Reply


Messages In This Thread
Restricted Vehicle Trouble? - by <Weponz> - 27.10.2010, 02:23
Respuesta: Restricted Vehicle Trouble? - by admantis - 27.10.2010, 02:34
Re: Restricted Vehicle Trouble? - by Tee - 27.10.2010, 02:40
Re: Restricted Vehicle Trouble? - by <Weponz> - 27.10.2010, 03:13
Re: Restricted Vehicle Trouble? - by Tee - 27.10.2010, 03:16
Re: Restricted Vehicle Trouble? - by <Weponz> - 27.10.2010, 03:27

Forum Jump:


Users browsing this thread: 1 Guest(s)