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;
}
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;
}